How do I get a multi-frame animation to work properly?

Or you can merge all the moves in a line of script.

=============================
Wait:10
=============================
Script: var p=this._pattern+1,d=this._direction-2;p%=3;if(!p){d+=2;d%=8;};d+=2;this._originalPattern=p;this.resetPattern();this.setDirection(d);
=============================

View attachment 310392

Pattern: 0,1,2,0,1,2,....
Direction:2,4,6,8,2,4,6,8,....
Perhaps you can still try this? It has only 2 commands so there's no room for stutter.
And the logic is simple, just repeat pattern and direction.
OK, I have another suggestion, same basic idea. The start of the move route has this:

: :◇Script:this._originalPattern = 0; this.resetPattern();
: :◇Turn Down

But that's 2 move commands, so it will take 2 frames to complete. As a workaround, you could try replacing those 2 lines with a single Script command:

: :◇Script:this.setDirection(2); this._originalPattern = 0; this.resetPattern();

That worked! Thank you so much!
Every move command (e.g. Direction Fix OFF) takes at least 1 frame.
Thank you for this! Learned something new today. It's interesting that even scripts take a frame to execute. IOW, each "row" in a movement route has a wait of 1 frame "built in" to it?

Perhaps you can still try this? It has only 2 commands so there's no room for stutter.
And the logic is simple, just repeat pattern and direction.
I have all the respect for how compact you have managed to make this. However, I also fear that it is a solution people will not learn from. Ten-line Tetris code, although impressive, is a bad textbook.
Yay! 😂

It's interesting that even scripts take a frame to execute. IOW, each "row" in a movement route has a wait of 1 frame "built in" to it?
Simpler than that: each mechanical frame, a character processes their next move command, if any (Game_Character#updateRoutineMove). There's no iteration, so that's a maximum of 1 move command per frame.

By contrast, an event interpreter has a loop: every frame, it processes commands until it's out of commands or should stop for some other reason, e.g. wait time, scene change, failed command, etc. (For details see Game_Interpreter#update.)

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-a-multi-frame-animation-to-work-properly.170022/