Jumping Issues. PLEASE HELP

Yax_IncYax_Inc Member Posts: 14
edited October 2012 in Working with GS (Mac)
Hello GameSalad Nation!
So I'm working on this 'Jump Game' but I have a problem because I don't know how to 'block' the jump button if it was touched already.
I just want my 'Jump Button' to work when its on the ground or on a platform!
Any advice you can give me?
Thx
-Yax Inc.

Comments

  • ElfizmElfizm Member Posts: 489
    Hello

    Why not have a game.attribute called canjump and change to false.

    On your actor that jumps have a rule that says, if game.canjump is true,
    And what ever else you have in the actor.

    Create another rule that says if collide or overlaps with platform

    Change game.canjump to true
    Otherwise change to false

    I don't know if this works but maybe it will help you in sone way. I am not near a computer to test it.
    Good luck with the rest of your game

    Elfizm :)
Sign In or Register to comment.