Jumping animation
darren.gregorio@gmail.com
Member Posts: 19
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
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.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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!
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.
Glad you got it working. I would have had to know your exact code/behaviors to give you any more specifics.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page