(Solved) Check if player is moving?

Hi guys,
I am trying to implement a stealth section into my game. One mechanic I wanted to add was allowing the player to hide inside a crate or barrel, and the idea is if enemies don't see them moving while in the crate, they will not detect them. But if the player is moving when the enemy looks in their direction, they will be detected.

Of course, there is no standard way to create a conditional branch that checks if the player is mid-movement. Is there a way to do this?
It's :
$gamePlayer.isMoving()

1586518049483.png


It checks if the player is in the middle of "moving" or not. So if the player presses movement button, but the character is stuck, it will be considered NOT moving.
$gamePlayer.isMoving()
Perfect, I figured it would be a script call. Thank you very much for swift reply.

Original thread: https://forums.rpgmakerweb.com/threads/solved-check-if-player-is-moving.120008/