How to make the overworld sprites move with the constant speed of the textbox

ho can i make the overworld sprites of npcs change from an open mouth to closed mouth sprite interchanging during text, without the use of external eventing, take this screenshot for instance

Sprite-0001.gif
Probably by swapping the event graphics to the mouth moving one and putting it on "stepping on" before the message box command. I don't see any other way without "external eventing".

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-the-overworld-sprites-move-with-the-constant-speed-of-the-textbox.167876/