NPCs moving when the player moves.

Hello. I have attempted to make NPCs that, everytime you took a step, they would take a step based on, well, X Y Z. That is, if an NPC wanted to chase after you, it would never fall behind, nor catch up, provided nothing got in the way, since it only moved when you move.

The closest I've gotten to accomplishing this is a seeking NPC that, while it did move when the player did, had a slight delay per step that would cause it to fall behind. I want to know if this is possible through events, or if not, what plugin can accomplish this, and if even that's not an option, how I can bend javascript to my will to solve this problem.

My project uses Yanfly's engine, for reference. Furthermore, I've yet to update from 1.5.2. If you want any more information, lemme know.

Original thread: https://forums.rpgmakerweb.com/threads/npcs-moving-when-the-player-moves.94161/