Help Button Jump

007leokart007leokart Member Posts: 38
edited November -1 in Tech Support
hi everyone i need help on how do i make a ground and an actor jump if someone help me i would apreciate it!

Comments

  • 007leokart007leokart Member Posts: 38
    Can't anyone help me! i really need help!
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Open GameSalad click new and search for jump. you'll find tons of helpful projects you can look at.
  • 007leokart007leokart Member Posts: 38
    Yeah know i know how to do the jump and the ground but then my without i clicking the button jump it keeps jumping again thats what i need help!
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
  • 007leokart007leokart Member Posts: 38
    THanks tenrdrmer a lot i finally made it (:
  • 007leokart007leokart Member Posts: 38
    Hey everyone i made my game that he jumps with a space but now i want to do with a button jump and now i dont know how

    if someone needs the project to help me i put the download here
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    make a game attribute called jump.

    In your jump button have a rule when touch is pressed
    -change attribute jump to 1

    then open up the otherwise section of that rule and have a change attribute behavior in there changing attribute jump to 0

    then just put all your jump rules in a rule when attribute jump=1 instead of the space bar rule or whatever you have now

    Also move topic out of tech support, and into working with gamesalad.

    cheers
  • 007leokart007leokart Member Posts: 38
    Hey this is my project: http://www.4shared.com/file/TRV-pDpi/cannon_jumper2.html

    And when you press 2 times space it makes a "double jump" and i want to do that but with the button "JUmp" that i made in the game so i can do the double jump and the normal jump with the button

    can anyone help me?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Merged… Please do make new threads on the same subject.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    007leokart said:
    Hey this is my project: http://www.4shared.com/file/TRV-pDpi/cannon_jumper2.html

    And when you press 2 times space it makes a "double jump" and i want to do that but with the button "JUmp" that i made in the game so i can do the double jump and the normal jump with the button

    can anyone help me?

    i already told you the answer.

    cheers
  • 007leokart007leokart Member Posts: 38
    hey everyone im done already but now i made him jump by pressing space and now i want him to jump when i press the button jump and i dont know how can someone help me?

    This is my project: http://www.4shared.com/file/TRV-pDpi/cannon_jumper2.html
  • 007leokart007leokart Member Posts: 38
    hey everyone im done already but now i made him jump by pressing space and now i want him to jump when i press the button jump and i dont know how can someone help me?

    This is my project: http://www.4shared.com/file/TRV-pDpi/cannon_jumper2.html
  • AsymptoteellAsymptoteell Member Posts: 1,362
    I haven't looked at the project yet, but from my understanding, what you need is for the button press to make him jump.

    Make a new Global Boolean Attribute. On the left side, tab Game, tab Attributes, press the little + sign on the bottom. Name the attribute "Jump"

    In your button actor, make a new rule: when touch is pressed, change attribute game.Jump to true.
    Otherwise, change attribute game.Jump to false.

    In your character that jumps, change the rule for jumping from "When Key Space is Down" to When Attribute game.Jump is true.

    That should do it. Tell me if it didn't work or if you can't find a button for something, etc.

    Asymptoteell
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    007leokart.

    Stop creating new threads for this. I have merged yet another identical thread.

    Please check your Private message.
  • 007leokart007leokart Member Posts: 38
    I tried to do the way you did but it didn't work. I tried everything but it didn't work! And already had that attribute jump but when pressed space it changed and made a double jump, i don't know how to explain but in the project you can see! But thanks!
  • 007leokart007leokart Member Posts: 38
    hey everyone im done already but now i made him jump by pressing space and now i want him to jump when i press the button jump and i dont know how can someone help me?

    This is my project: http://www.4shared.com/file/TRV-pDpi/cannon_jumper2.html

    can anyone help me plx?
Sign In or Register to comment.