I wrote a program to move an image when I press arrow keys(using keylistener). When key was pressed the image move a littele and then wait for about half a second and then moves again smoothly. I want to remove the waiting time. How can I do this?
Asked
Active
Viewed 16 times
0
-
Can you provide the relevant code? – Kirk Broadhurst Sep 05 '15 at 04:38
-
Do a quick search on SO, this a common problem which is well documented (hint, use key bindings, a flag and a update loop) – MadProgrammer Sep 05 '15 at 04:48