Actor jumping and falling/descending from jump

Stryfe01Stryfe01 Member Posts: 146
edited November -1 in Working with GS (Mac)
I'm having an issue that i just can't seem to wrap my head around. My actor is jumping. Here is how i have it situated.

i followed the guide in the how to, but there were no animations included in that one. I currently have animations from the ninja standing still and those with him jumping, to falling.

I tried changing it so when the jump button is pressed, it moves and animates the jump to its peak. then for the descent i applied gravity to the actor and animated it with the descent frames.

i thought that it would work, but no luck. any thoughts?

Comments

  • Stryfe01Stryfe01 Member Posts: 146
    anyone?
  • TwilightHunterTwilightHunter Member Posts: 146
    Hey, you could try and do this: If Ninja(self)Linear Velocity Y is Equal to or Smaller than -1, change animation to NinjaFalling. So basically when the jump button is triggered, change the animation to NinjaJumping, then in your actor add a rule that says the above code. Sow when the Ninja starts falling, he changes his animation to NinjaFalling.

    -TwilightHunter
  • Stryfe01Stryfe01 Member Posts: 146
    Thanks! This worked out great.
  • millerbrother1millerbrother1 Member Posts: 108
    Stryfe01 - can you post up a shared project with your jump sequence? it might turn out useful to others as well.
Sign In or Register to comment.