> Pin position only and set the sprite-rotation through event/action?
>
> So something like:
>
> System every tick
> > sprite set angle : round(pathfinder.angle/5)*5
> > sprite set frame: round(pathfinder.angle/5)
>
> Should work if 0 degrees is frame 0, 90 degrees is frame 18 etcetera..
>
I have pinned position only, but like I said, it's not the sprite object that is the issue. Ignore the tank sprite, it's the green box I've got an issue with. The pathfinding object is a Construct 2 object square filled with green color, practically a "vector". When I right-click on a place, it will rotate towards the point and move, and additionally rotate on its way. The angle can be changed as low as 0.0000000000000000001 degrees, but I want it to rotate 360 degrees but snaps to 5 degrees per rotation. In other words, it can only rotate in 72 directions, rather than the 1 million tiny pixels it can rotate to.
Pay attention to the number here:
That is the angle of the green square. Don't mind the tank sprite, I know how to fix that. What I need, is that green square to snap the rotation, so it doesn't land on something like 83.546654896046809 degrees, but snaps on 80 or 85 (like the tank sprite does - but again, ignore the tank sprite).
Ok..
I'm sorry, but I don't understand why that would be important..
But if you really, really have to, you could do it by using bullet behaviour for the movement and only use the pathfinding behaviour for the pathfinding..
Like in this example:
Pathfinding in circles