toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
How do I change the actor?
gmango
Member
Posts:
2
August 2011
edited November -1
in
Working with GS (Mac)
Ok, I want to press a button in one scene, and in another scene the actor will change. How do I do that?
Comments
DrGlickert
Member
Posts:
1,135
August 2011
Change actor? As in like completely change the actor or change the image of an actor? Changing the image of an actor should be pretty easy;
Use a game.attribute that's an integer type. Call it whatever, we'll say its game.ActorImage
When touch is pressed, change game.ActorImage to 1 (or 2, or 3, or whatever).
On the actor;
RULE: If game.ActorImage = 1
Change image to image1.png
If game.ActorImage = 2
Change image to image2.png
ETC
ETC
gmango
Member
Posts:
2
August 2011
no, i mean press a button in one scene and then in when you go back to the start screen instead of actor 1, there will be actor 2. not the image, the actual actor.
Sign In
or
Register
to comment.
Comments
Use a game.attribute that's an integer type. Call it whatever, we'll say its game.ActorImage
When touch is pressed, change game.ActorImage to 1 (or 2, or 3, or whatever).
On the actor;
RULE: If game.ActorImage = 1
Change image to image1.png
If game.ActorImage = 2
Change image to image2.png
ETC
ETC