Jump Help

memski425memski425 Member Posts: 19
edited August 2012 in Working with GS (Mac)
I was having trouble with jumping. I made a button so that my actor would jump when pressed. When ever i touched the button it would jump to my liking but once i tapped it twice it made it double jump and triple jump :(. Here are the rules i set it too.
Hero Rules:
game.jump is true
self.motion.linear velocity.Y to 500
Jump Button:
actor receives event touched pressed
game.jump is true
otherwise: game.jump is false

Thanks!

Comments

  • memski425memski425 Member Posts: 19
    thanks it worked!
  • cooldoodcooldood Member Posts: 1
    Hi guys I'm havkng the exact oposate. So i set it so that if a button is pressed then a bolegrean number makes true and if it is true it goes up for a few seconds the problem is that it only works the first time after that it doesn't work.
  • grierdillgrierdill Member Posts: 16
    Hmmm, the problem i'm having with this setup is that when I hold down the space bar the actor keeps bouncing on the ground when what you'd expect is for it to only jump once till you press the jump button again.

    When I hold down the space bar, it doesn't reset the game.jumps when the actor hits the floor and keeps allowing it to jump. Any thoughts?
Sign In or Register to comment.