Is it possible to have the game test if the player is moving or not?

So, I am currently making an RPG Maker 2003 game where you can press the shift button to do an action animation. However, I do not want the player to do it while they are moving, only if they are staying still. Is it possible for the game to test if the character is moving or not? Thanks.
Hey there,

I haven't worked with 2k3 for a while, so I might miss something here. I don't know if there is an easy way to check movement directly, but if nothing else helps there should be work-arounds for this:

For normal input, you could check whether the player is currently moving to another position by comparing their screen coordinates to those of a static event. If the difference between the coordinates is a multiple of 16 (=> difference modulo 16 equals 0), then the player is currently standing on a tile.

For move routes, I don't see an easier solution than activating a switch at the start of each player move route and deactivating it at the end.
You can have a Parallel Process store the hero movement in a variable with "Key Input Processing" (without "Wait for Key Input").
Then, all it takes to check whether the player is moving the character is a Conditional Branch checking if the Variable is 0.
When you aren't moving, the variable is 0. When you are moving, it's between 1 and 4 depending on directions.

Spoiler
qghSkpU.png
Spoiler
4pOIjsN.png

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-have-the-game-test-if-the-player-is-moving-or-not.96972/