Change actor with click in different scene
Pubathedog
Member Posts: 5
I need to change the actor(glove) when a person clicks the buttons in the shop scene.
http://tinypic.com/r/a0ugqw/8
http://tinypic.com/r/28v920m/8
Comments
It's just a basic store that needs to change the character image, when an upgrade happens.
The way you communicate between actors is by changing the value of a game attribute. So create one for each item -- or better yet, use tables to store the values and then have rules that change the image based on the attribute or table cell values.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I don't quiet understand what you mean. I'm kinda new to this. Can you please give me a step by step instruction on how to do this?
Say you want to change the gloves, create a game attribute called gloves and set it to 0 as default, then when the player clicks your shop button change game atribute to 1, 2, 3 ect
Against your player or gloves actor have a rule
If game atribute gloves = 0 display image..
If game atribute gloves = 1 display image...
So the game atribute defines what image is shown
thank you.
No problem