Hi there, I am currently making a Crossover game, and have all the basic behavior for Mario. I want the Shift button to toggle if Mario is going to RUN/WALK, when pressed. Here is how I have arranged my events. WHen I press Shift Mario changes its behavior to the RUN/HIGH JUMP behavior, but there is no way to go back to WALKING STATE, (If Ipress the left or right key he will start running instead of walking. I want him only to RUN the the Shift key its been pressed.
mediafire.com/folder/l5a4qfepbjzse/scirra
Thanks!
Try this:
Keyboard Shift is down ----------------> player set Platform maximum speed 100 ----------------> player set Platform jump strength 100 Else ----------------> player set Platform maximum speed 50 ----------------> player set Platform jump strength 50 [/code:17ght881]
Develop games in your browser. Powerful, performant & highly capable.
Thank you this did help!... however. I have another problem.
When he is done Running from pressing the SHIFT, he is stuck in the running animation, instead of the Idle animation (this on only happens to Big MARIo and not Small Mario.)
Here is a good way to change animations for a platform character (screenshot from someone else's game):
Sorry for the late response. This helped a lot, (plus I was making a stupid mistake)
Thanks a lot!