Grid movement program

I was wondering what will be the shortest program to make a grid movement.
My goal is to move a top down character with grid. Well If I press Up key once the character will go to next grid box.

If it’s a square grid and you know the grid size, you can just add/remove the grid size to position.
(if press UP, change Y position of character: remove 50, for instance)

2 Likes

I’m pretty sure there is a grid based movement extension available in the extension list. Check if that works for what you need first. If not you could always open the extension and see how they built it, for ideas.

1 Like