Nope-
A key press triggers a call to the event, and the key value is passed in. If it is the key that you are looking for, the "while" will never stop because you are already in the event. Instead, focus on the "add detail" options in the "arrowKeyPressed" header.
Time to start Experimenting
Quote:
Originally Posted by wbarnum
When I let up on the key, wouldn't that make the condition false and it would stop executing the inner loop and therefore stop moving the character forward?
|