Idle Animation Lag

Hello, I am new to coding and wondering where I went wrong. My animation lags when switching between walking and idle. I have a wait command in the code, but if I take it away my player cannot move at all. I'm not too sure what to do from here.
Does anyone know how to properly do an idle animation?
Thanks
Hello, I am new to coding and wondering where I went wrong. My animation lags when switching between walking and idle. I have a wait command in the code, but if I take it away my player cannot move at all. I'm not too sure what to do from here.
Does anyone know how to properly do an idle animation?
Thanks

It may be because there is nothing triggering the Common Event, click on the Trigger Options (next to the name) and set it to parallel, that way it will always be active.

EDIT: I'm sorry I misunderstood the question! Please ignore my reply 😅
I don't understand what are you trying to achieve with this code and common event. You will have to be more precise and explain more what is exactly what you are trying to do and what your train of logic was when doing this.
Not gonna fix your problem, but I would increase the wait frames by a lot. It seems to me you could delete the 1st if and just check for the 2nd if, else nothing except wait.
Not gonna fix your problem, but I would increase the wait frames by a lot. It seems to me you could delete the 1st if and just check for the 2nd if, else nothing except wait.
I'll try that and let you know how it goes, thank you 🙂
That's because it's constantly calling the walk animation. Galv has a plugin for this that I believe was ported to mz. For the evented route personally I would check

If/else

IF- player is moving then another conditional check to see if MOVING switch is OFF then turn ON MOVING switch and set your graphics to walking turn stepping off. This way if the switch is on, it does nothing keeps the same graphic.

ELSE- (meaning player is not moving) Another conditional to see if MOVING switch is ON then turn OFF MOVING switch and change graphics to idle and turn stepping on.

Then outside of the conditional have a short wait of 5-6 frames.

Original thread: https://forums.rpgmakerweb.com/threads/idle-animation-lag.167041/