Is there anyway to make a chase scene with the chaser having some sort of weapon?

I have a chase scene but I'm not sure how to do it and,like, the murderer have for example, a crossbow, so if the player runs on a straight line the murderer would shoot them. Is there a way to make it?
You'd need to have a parallel process event track player movement through change of x and y coordinates. If one chamges, but the other not, increase a variable. If the other changes, reset it back. When it reaches a certain value, lets say 5, you'll turn on a self switch to trigger an autostart page, which will contain the shooting animation.
You'd need to have a parallel process event track player movement through change of x and y coordinates. If one chamges, but the other not, increase a variable. If the other changes, reset it back. When it reaches a certain value, lets say 5, you'll turn on a self switch to trigger an autostart page, which will contain the shooting animation.

Can you explain about the variable more? I'm confuse about that
There's a built-in tutorial in MV that explains basics of MV, including how variables work.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-anyway-to-make-a-chase-scene-with-the-chaser-having-some-sort-of-weapon.104113/