toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Switching Help
MOVProductions
Member
Posts:
53
June 2011
edited November -1
in
Working with GS (Mac)
I want to make something that when a button is pressed the object switches and the other one is then being controlled
Comments
DrGlickert
Member
Posts:
1,135
June 2011
Make a game attribute, integer type, call it game.switch (or whatever you want to call it)
Rule on object 1, when game.switch is 0; control camera
Rule on object 2, when game.switch is 1; control camera
Rule on button;
when touch is released change attribute; game.switch to (game.switch+1)%2
DrGlickert
Member
Posts:
1,135
June 2011
http://www.youtube.com/user/GameSaladCookbook#p/u/7/tJ6ZYERfatY
Also, watch this video. It explains it in more detail.
Also, watch all the videos.
Then, watch them all again. (I've seen some like 10 times). They're very helpful!
Good luck!
MOVProductions
Member
Posts:
53
June 2011
thanks
Sign In
or
Register
to comment.
Comments
Rule on object 1, when game.switch is 0; control camera
Rule on object 2, when game.switch is 1; control camera
Rule on button;
when touch is released change attribute; game.switch to (game.switch+1)%2
Also, watch this video. It explains it in more detail.
Also, watch all the videos.
Then, watch them all again. (I've seen some like 10 times). They're very helpful!
Good luck!