This is one implementation, just to give you the idea.
Also I didn't use WASD as I have an AZERTY keyboard, and WASD is truely a pain with it.
Nothing beats the arrow and always think about internationalization of your application if you want to hit a large audience.[/QUOTE]
This might just save my life.
However, may I ask, instead of teleporting the player every button, how do I make it visibly move -> then stop at the next tile?
Should I use dt function here?
On pressing "LEFT" : Move "PLAYER" forward 32 pixel *dt???
Oh dear, I didn't know this is a 2 page post. My question is actually the same as Smurfee.ZhaoYun2012-05-17 18:20:59