Isometric Player Movement - Grid Snapping Help

How do I…

I’m attempting to make an isometric game, but I’m currently stuck on snapping my character to the grid. I currently have my character moving diagonally, but it is not snapping as I want it to. I have the “Pixel Perfect Top Down Movement” and “Top Down Movement”, extensions on the player.

What is the expected result

I want my player to snap to the next spot on the grid when I press an arrow key. I see this working in the examples, but since my game is isometric, I’m not sure how to get it working.

What is the actual result

What is happening now is that my player is kind of snapping place-to-place, but still sliding as it moves diagonally.

Related screenshots



Project files (optional)

(how do I attach a zip file?)

The pixel-perfect extension doesn’t work for isometric grids yet.

Ah, that’s what I was guessing. Thanks for the confirmation :+1:t5:

Do you need the character to move like the top-down movement with an acceleration and max speed or just going to one cell at a time?
Because if the 2nd option works for you, you could use a tween to move + or - 16 on X and 8 on Y.

2 Likes

I’ve bookmarked this project for now, but I’ll try your suggestions and work with it when/if I came back to this. Thank you!