Simple button for thrust

suntzumobilesuntzumobile Member Posts: 34
edited November -1 in Working with GS (Mac)
hey guys, I know it's the basics but I can't find the info in the sea of topics Can anyone instruct me on setting up a thrust button

thanks guys

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Start with this: http://gamesalad.com/wiki/how_tos:gsc_create_a_button

    Have it toggle a game attribute to true/false using Change Attribute behaviors in the both halves of the Rule.

    Rule: If Actor Receives Event touch is pressed
    --Change Attribute game.thrust is true
    Otherwise:
    --Change Attribute game.thrust is false

    Then have your actor Accelerate when that game attribute is true.
    Rule: If Attribute game.thrust is true
    --Accelerate
  • suntzumobilesuntzumobile Member Posts: 34
    i'm sorry man, I don't know if i'm lame or stupid, just could not grasp it. Can you send me some screen shots of how it is supposed to be set up.? in Lame-mans terms,

    thanks a lot seriously frustrated.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    I have something better. A demo example.
    http://gamesalad.com/game/play/85304
Sign In or Register to comment.