I’ve run into a small issue with Movement Templates. For example, when I set up a ground-based enemy to chase me, if I jump, the enemy will also track along the Y-axis, which causes weird vibrating behavior. The only way I can fix this right now is by setting the vertical movement rate to 0. I wonder if there are other ways to solve this problem.
I suggest adding a “Restrict Movement Mode” option or separate “X/Y Axis Tracking” toggles to this feature. This way, we could achieve mechanics without relying on the sight system—like making enemies stop moving if their backs are turned toward you, for instance.
This issue can happen on side view games because the vertical speed is still trying to apply. So the jitter can be happening from the object trying to move upward but then having gravity apply on it.
The fix for this is to set the vertical speed to 0. Most side view situations don’t require vertical movement so it shouldn’t affect gameplay. Flying enemies usually have 0 gravity so they can have vertical speed.
You can set vertical speed to 0 in each specific state: