Original Post
Hi all,
If I want to control a character in a action game... when the users press the "left" button, the character walk to the left, if the users press the left button twice, the character run to the left, how to code it? If I just check the state of the key(true/false), it will only know that the user pressed left button at that moment...
How to distinguish the users press once or twice? Similarily, a sequence of pressed key? (e.g. left, left, a => running kick, left, left, b=>running punch)
Thanks
~nobird