Eventing a Player Character Run Sprite

I'm using Shaz's More Frames plugins since Galv's doesn't work with NPCs before you recommend that plugin.


Anyways, is there a specific script that checks if your character is running so that he or she switches to a running sprite? Likewise when idle/walking, the event makes the sprite use the idle and walking animations instead.


Here is my original code to be checked:


http://imgur.com/XxLTefp
Why not just change the event graphic itself? I'm assuming you're setting a move route to make them move. 
Nevermind. I resolved my event.


Page 1

Spoiler
If : Script: $isGamePlayer.isDashing()


Change Actor Images: INSERTRUNIMAGEHERE, xyz, xzy


Control Self Switch A ON


Else


    If: Script: $gamePaayer.isMoving()


    Change Actor Images: INSERTWALKIMAGEHERE, xyz, xyz


    Control Self Switch B ON


    End


End

Page 2 (Self Switch A / Running)

Spoiler
If : Script: $isGamePlayer.isDashing()


Else


    If: Script: $gamePaayer.isMoving()


    Control Self Switch A Off


    End


End

Page 3 (Self Switch B / Walking)

Spoiler
If : Script: $isGamePlayer.isDashing()


Control Self Switch B Off


Else


    If: Script: $gamePaayer.isMoving()


    End


End

Mods feel free to close this or let me know if there is a tips section I could post my event on.

Original thread: https://forums.rpgmakerweb.com/threads/eventing-a-player-character-run-sprite.68900/