Is there any way to limit pathfinding to an axis? I want an enemy to move towards an object, but only on the y axis. It keeps popping back and forth a few pixels, even when I set the “Destination X Position” to its current position.
Why use pathfinding if there is no need to look for a path?
It follows an object nicely without jittering, and you can set things like acceleration
The little I’ve used pathfinding, I found it quite jittery.
Either way, it looks like you’ll need to use something else.
Try using linear interpolation, and use a variable for speed if you want to adjust it on the fly.
IIRC, it’s lerp(currentposition,destination,speed).