How do you change the walking animation to the running animation of a character when the player holds down the shift key? I already have a running animation spritesheet (it came with one of the graphic packs I purchased here), I just need to implement it when the player holds down shift.
Running animation (sprite)
RPG Maker VXAce SupportIf you want to do this without scripting you need to run a parallel process that checks for the shift button being pressed (A by default setup) that changes the character graphic and then turns a self switch on that has a conditional branch also checking for A being pressed, but is blank and instead in the else branch changes the graphic back to the walking one and turns the A switch off so that the first event can cycle again. I did this for a stealth system to show a crouching pose recently and it works fairly well.
I know that the scripting route there are a few scripts that allow this to happen automatically however if you are just using the default shift-run system. Victor Sant has a script that does this, I think it's called character control or something similar to this, it involves putting tags at the end of the spritesheets to tell it which ones to use when.
I know that the scripting route there are a few scripts that allow this to happen automatically however if you are just using the default shift-run system. Victor Sant has a script that does this, I think it's called character control or something similar to this, it involves putting tags at the end of the spritesheets to tell it which ones to use when.
Thanks Alexander, I think I get it; then, how do I set a switch that checks the "shift" or "A" key as being pressed? I haven't used switches wityh keys yet, only those related to text and graphics.
It's under "Conditional Branch" One of the conditions you can check is "Button _ Is being pressed?" All you do is put that in a parallel process where if true it changes the graphic and sets self switch A to on, then on the second event page (also parallel) you create the same conditional branch but leave the true rendition blank and have the else branch reset everything. (the reason you don't just have one branch for both is because as a parallel process it will constantly update whichever one is true, which screws with player movement.)
It worked! Thanks again.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/running-animation-sprite.23684/