1 jump only please

GnomerGnomer Member Posts: 292
edited November -1 in Working with GS (Mac)
Ok so i want to make it so that when you click a button it only makes the other actor only jump once - not continuous bouncing if you hold it down, Any way to do this?

Thanks
Gnomer.

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    use a boolean

    when touch = pressed, after .3 seconds change to false

    Only jump when boolean = true
  • GnomerGnomer Member Posts: 292
    Ok, but i have an animation for the jump - but i also have another animation for the character running, the problem is that when he jumps, the game glitches and tries to play both at the same time. how could i solve this?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    have the running animation in a rule when attribute jump= false

    so it only animates when your not in the jump, and only your jump animation plays
  • GnomerGnomer Member Posts: 292
    How did I not think of that... Haha thanks :)
Sign In or Register to comment.