View Single Post
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default 08-24-2015, 06:54 PM

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 View Post
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?
   
Reply With Quote