Change actor after a certain score
dl2e
Member Posts: 1
Hi all I am new to GS so please help.
I am trying to have my actor change after it reaches a certain score and having problems getting the image to load.
I have 2 actors created. Main actor (Guy) contains all the rules and second actor (Guy2) is what I want it to switch to. For Guy, I have set it so that when game.score >10, Change Attribute to self.image to Guy2. And then I added a Constrain Attribute self.image to true
For the most part is seems to take on the rule I've created, but the image is not showing up and I see a white box. please help.
thanks
Comments
The white box is there because you are changing the attribute self.Image (the filename of the image used for the actor) to Guy2 and then constraining the attribute self.Image to true. Unless you have an image in your library called true.png, that won't work and GameSalad's response to an invalid image is to show a white box.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
genius. thank you for the tip!