(Solved) Pathfinding animation problem in 8 directions

Something has changed in GDevelop with the setting animation. If you set an animation and it’s the same animation as before, then it won’t reset tot eh first frame - it just keeps playing.


@Hezeper, try renaming your animations to the angle they represent (0 for right, 45 for down-right, 90 for down etc) :


And then use the following to get the angle and set the animation :


I use round because sometimes the angles aren’t exactly a whole number, and I use mod in case the angle is 360.

I also added a timer because otherwise the animation seemed to flicker, as it quickly changed angles along the path.