Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8931

How can I make a selected image stay when the actor dies and respawn?

$
0
0

Before the start of the basketball game, the player can select which color of ball he wants to play with. I got the changing ability working but when the ball gets destroyed and spawn again, the ball color goes to the first original color.

here's how my ball changes colors.

When Touch is pressed and if Attribute self.image is White then Change Image to Black
When Touch is pressed and if Attribute self.image is Black then Change Image to Gray
When Touch is pressed and if Attribute self.image is Gray then Change Image to Red
When Touch is pressed and if Attribute self.image is Red then Change Image to Blue
When Touch is pressed and if Attribute self.image is Blue then Change Image to Green

So how can I make it stick to red if that's what i've selected and vice versa?


Viewing all articles
Browse latest Browse all 8931

Trending Articles