How do I move the caracter of one tile per movement?
When moving right:-
player.x = player.x + (number of pixels)
thank you but I'm using
when key is down move 32 pixels at angle 0 (to move forward)
but it moves too fast
I want a sort of bomberman style game, but I want it to move 1 block each time (not like the tutorial in gameDev tuts)
Develop games in your browser. Powerful, performant & highly capable.
Thank you Yann!! I Have a maze type game that moves in blocks but was having trouble checking if there was a free space in the direction of movement, you've just solved that!
wow, thank you very much!
and what if I want to keep it moving until it hits the wall?
Maybe this tutorial will help?