How to make sprite automatic move perfect in pixel

Here’s an example in maze.

https://forum.gdevelop.io/t/issues-with-pathfinding-settings/61542/2?u=keith_1357

The pathfinder works by using a grid. I drew the dots to represent the nodes. When you want a grid based like movement, you can set the pathfinder to the same size as the scene’s grid and set the offset to half the value.

This puts the nodes in the center of each tile. Make sure the object’s origin is in the center. It’s up to you if you want to disable diagonal movement. It’s under advanced.

1 Like