Hello everybody,
I have a question for some time, I create a button that I keep hurrying to run (an animation play with this button), when I jump, the jump's animation doesn't work (because button is pressed the animation's button play always not the jump's animation), how I do to allow the jump's animation play with run button pressed ?
Thank you in advance.
Develop games in your browser. Powerful, performant & highly capable.
If I think right, you want to make animation for the button, right?
In that case, I think you can add a condition that checking the player's speed and is on floor or not, then you can play the run animation for the button.
It's ok, I have create condition on the floor + instance variable (1 = walk and 2 = run)
But there is still a problem, so we can not perform an action with a button if another button is already pressed ?
It's annoying for a platform game if you can not advance and hit for example, because the forward button is pressed so the action does not start with the second key to hit ?!
So you can do like this:
Excellent, it works very well !
Thank you very much !!
It's good to advance and attack, but to jump forward the animation does not play...
It doesn't work if I use two button for two actions (only the first play animation).