I'm new to mmf2 and I have a (noob) question about the running animation. I have the sprites for the walking and running animation but what is the best way to run the running animation?
I want to hold shift for my character to run. Once I let go of shift, it goes back to walking animation. This is what I did:
Repeat while "shift" is pressed - change animation sequence to running.
X Repeat while "shift" is pressed - restore animation sequence.
This accomplished the walk to run animation. Two problems though:
1. When I hold shift, the animation plays without the character is moving.
2. The second condition blocks out any other key presses. For example. If I wanted another animation to play by pressing another button, it won't work because of the second condition.
What is the best way to have the character go from walking animation to running animation? How are you guys coding the running animation? I looked around and can't seem to find an answer. A link or your guidance will be much appreciated.
Thank you for your time.