double jump advice

monofonusmonofonus Member Posts: 10
edited November -1 in Working with GS (Mac)
Can anyone give me a clue on how to constrain my character to making two jumps? Right now my jumping is based on overlapping/colliding with a platform, which is okay, but I want to make it so that the character jumps into the air and then can jump one more time while still in the air (but only one more time), and then the jumping resets when the character lands again on a platform. I could really use a hint. Thanks!

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    You can use a attirubte to track the ammount of jumps. Each time a jump happens add 1 to that attribute and then have the jump rules in a rule when that attribute is equal to or less then 2. That way once its jumped twice it cant jump again.

    Then you can have a rule when the player colldies with platform, change that attribute to 0 so it resets the whole thing.
  • AgathaAgatha Member Posts: 5
    You can get these Moncler Sale jackets at affordable price and fast delivery.100% Polyamide,100% duvet.100% Authentic Moncler Jackets Hot Sale Online.Welcome to come to discount Moncler Jackets,All items on Moncler Outlet website are Authentic and top quality,come with original Package Card,We are committed to your complete 100% satisfaction.
Sign In or Register to comment.