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
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.
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.