Well use something new for this: Key.isDown, a function that checks to see if a key is pressed. When used in tandem with an if statement and other Key.parameter functions, it can be used to determine motion based on keypresses.
By Adrien-Luc Sanders, About.com Guide
Well use something new for this: Key.isDown, a function that checks to see if a key is pressed. When used in tandem with an if statement and other Key.parameter functions, it can be used to determine motion based on keypresses.
©2012 About.com. All rights reserved.
A part of The New York Times Company.