but I was not able to wrap my head around them...
Lets compare 2 plugins. The official one and EasyStar.js pathfinding for tilemap, and wrap your mind around it.
The 3th party is here: behavior-easystar-js-pathfinding-for-tilemap_t129056
The official pathfinder is designed to find the shortest path and to move from node to node in a way that it is effective the shortest path. Therefor it needs to also control the movement. That the pathfinder also controls the movement is at the same time a blessing and a burden. The official pathfinder also takes in account the acceleration, the deceleration and the rotation speed. And that makes it a fairly complex thing, behind the scenes.
All 3th party plugins that i know of dont also move the object. They just find paths and provide the nodes. Up to you to move it from node to node in a way that you find is best.
Since you want to move in a 'grid' i choose for 'EasyStar.js pathfinding for tilemap'. That is the right one for this job. From now on i call it 'EasyStar' and the official one 'Official'.
The Official is (as behavior) attached to the object that needs a path.
The EasyStar is (as behavior) attached to a tilemap.
This has consequences.
The Official finds a path from layout coordinates to other layout coordinates.
The EasyStar finds a path from one tile index to another tile index.
So, lets compare them.
In this capx, i use both to find a path, to show the nodes, and to move from node to node.
To move the EasyStar (it does not move things, just finds paths) i used MoveTo from rexrainbow.
So here is the first capx.
https://www.dropbox.com/s/2p4y99ondeq3f ... .capx?dl=0
So that is the basic setup for both plugins. Notice how the Official moves its sprite over the shortest path. Moving over the grid is NOT the shortest path at all. That is very clear when you compare it to the the EasyStar. Hope this basic setup helps you to use the the EasyStar. But. That is not my target with this. I gonna try to steer you to use the Official.
Now, if you look at the nodes from the Official (the green nodes), they lay perfect on the grid. So we have to force it to take a longer path, not the shortest. A path that moves on the grid.
To do that, i use it to find a path, but i use MoveTo to move the sprite over the path.
Done that in a capx.
https://www.dropbox.com/s/vho1dil31phms ... .capx?dl=0
As you see, now it moves perfect over the grid. I do the moving myself because i am not interested in the shortest path movement provided by the Official.
For the purist. Yes, i can do that without a 3th party plugin. (correcting for dt is up to you then)
https://www.dropbox.com/s/txt3to7z2svde ... .capx?dl=0
Now you have 2 methods. And both work flawless.
Just choose based on what path you want. Because the EasyStar and the Official do provide a slightly different path.
Hope this helped you some.
PS. I am aware that Dropbox killed a lot of download links. I have no idea how this is gonna be solved. And i dont know if i am allowed to distribute 3th party plugins.