Jump as long as button is pressed

cbowers428cbowers428 Member Posts: 176
edited November -1 in Working with GS (Mac)
I posted about this earlier but no response so here we go. I have an actor who can jump His jump is controlled by a jump button. I want the height of the actor's jump to depend on the length the jump button is pressed. Does anyone know how to do this?

Comments

  • QbAnYtOQbAnYtO Member Posts: 523
    Play around with the press and release. Or is it end to completion? Man in so sorry. I forget. :/
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    game boolean attribute called jump

    In your button
    when touch is pressed
    --Change Attribute game.jump to true
    Otherwise
    --Change Attribute game.jump to false

    Then in your actor
    When Attribute game.jump is true
    --Accelerate/move up

    ___________________________________________________________________________________
    BubbleBall Template HERE!!

    AppSolute Entertainment on Facebook
Sign In or Register to comment.