[Help] Enemy Moves when Player moves. Enemy Stops when Player Stops. Is that possible?

Title might sound confusing, but let me explain. I know you can set an enemy to turn/face the player and move towards or away from them. But I was wondering if there is a way for the enemy to follow the player when they are moving, then stop when the player stops moving.

Any help is appreciated, thanks!
If you mean enemies on the map I know of at least 2 games where map movements are turn-based. So the player needs to think before moving in any direction.
You can do this with events.

I'm not at home at the moment, but a simple but not very practical method would be like this:

Create 2 Switches:
  • Check movement
  • Move enemies
Create 2 variables:
  • Player-Steps_Check
  • Player_Steps_Counter

Create a common event (activated by Switch "Check movement"):
Code:
Control Variable[Player_Step_Check] = Player's step
IF: Var[Player_Steps_Counter] = Var[Player_Step_Counter]
    Control Switch[Move Enemies] = OFF
:Else
    Control Switch[Move Enemies] = ON
    Control Variable[Player_Steps_Counter] = Player's step
:End

For all enemy NPCs, create a new page with the same graphic as the first, enable it on Switch 1 and select “Move Enemies” and in "Autonomous Movement" change from "Fixed" to "Approach"

See "Autonomous Movement" in Help file:

Original thread: https://forums.rpgmakerweb.com/threads/help-enemy-moves-when-player-moves-enemy-stops-when-player-stops-is-that-possible.170429/