Only jump once

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
I used a button to control the jump function for my actor. I created a boolean attribute and I worked with self.Moton.linearVelocity....

When I press the button my actor jumps, when I press again he jumps higher and higher...I only want him to jump once, and when he hits ground then he is able to jump again..

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    put your jump rules in a rule when actor collides with ground. So he can only jump one time when hes on the ground and not in the air

    cheers
  • davidsalomondavidsalomon Member Posts: 136
    JohnPapiomitis, could you see my topic about the jumping problems? http://gamesalad.com/forums/topic.php?id=33669
    Thank you very much you have helped me a lot, but now I'm experiencing some other difficulties, I even made a video to show everything. You can watch it in my topic.
Sign In or Register to comment.