How do I move the caracter of one tile per movement?
When moving right:-
player.x = player.x + (number of pixels)
Develop games in your browser. Powerful, performant & highly capable.
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)
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?
http://www.mediafire.com/download/seh9c ... ement.capx
Maybe this tutorial will help? https://www.scirra.com/tutorials/308/cl ... ics-pacman