Jumping animation

I have an animation of 9 frames for my character to jump, my problem is that the character only animates when i hold my keys, it would go back to the initial image when i release my finger from the key. How do I make my character to finish animate when I press the key, not hold the key. Please, I really need this fast.

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Create an Attribute that will track if the player is jumping or not. And use this Attribute to trigger and run the animation instead of a key press.

  • And how exactly do I do that? Sorry, I am new to game salad

  • Nevermind, I found out the way, thank you overmuch, your solution really helped!

  • AdrenalineAdrenaline Member Posts: 523

    Right now, you've got the animation starting with the push of a button.

    Instead, make that button trigger an attribute change (setting 'jumping' to true).

    That way, you can have the animation play while 'jumping' is true.

    Set 'jumping' to false when the player lands on the ground again.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Glad you got it working. I would have had to know your exact code/behaviors to give you any more specifics.

Sign In or Register to comment.