While Loop and Keypress Listener -
08-21-2015, 12:33 PM
I've written a program that is supposed to move a character forward as long as the "up" arrow is pressed.
I'm using a while loop with the condition "event isKey UP is true".
The character starts moving forward when I press the "up" arrow, but when I release it, the character continues moving forward indefinitely.
I don't know if this is a bug or a case of user error.
Last edited by wbarnum; 08-21-2015 at 01:40 PM.
|