toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Simple button for thrust
suntzumobile
Member
Posts:
34
October 2010
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
CodeMonkey
Head Chef, Member, PRO
Posts:
1,803
October 2010
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
suntzumobile
Member
Posts:
34
October 2010
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.
CodeMonkey
Head Chef, Member, PRO
Posts:
1,803
October 2010
I have something better. A demo example.
http://gamesalad.com/game/play/85304
Sign In
or
Register
to comment.
Comments
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
thanks a lot seriously frustrated.
http://gamesalad.com/game/play/85304