Double Jump

dee99dee99 Member Posts: 100
edited November -1 in Working with GS (Mac)
how do i do one? i alread have regular jump perfected

Comments

  • dee99dee99 Member Posts: 100
    i said DOUBLE JUMP not doodle jump.........
  • FatalCrestFatalCrest Member Posts: 113
    I can help with this haha multi-jumping is pretty simple :)

    What you'll need -

    Your actor that jumps, MainGuy
    Your "Platform"
    Whatever you use to let you guy jump, lets call it Button

    Attributes -

    Integer - jumpCounter
    Boolean - onGround

    In your Button Actor,

    All

    If touch is pressed

    Change Attribute onGround to False
    Change Atrribute jumpCounter = jumpCounter+1

    In your MainGuy,

    Make two groups, Functions and Collision

    Under Functions,

    Any

    If jumpCounter=1
    If jumpCounter=2

    (Insert Jumping Method here such as accelerate 90" at 180 or something)

    If onGround is true

    Change Attribute jumpCounter to 0

    Under Collision

    If actor collides with actor Platform

    Change Attribute onGround to true

    ---

    GL! :D
  • dee99dee99 Member Posts: 100
    Thank you for the help guys, i apreciate it!
Sign In or Register to comment.