Colour selection
We want to make a colour selection option. There is a main character of the game; when the character catches an object, two different images appear one after the other, sort of as an animation. When the character misses the object there is also an image change for less than a second. The goal is to make an option however, where the player can change the colour of the main character. We created a colour selection screen, with four different available colours. Four different coloured versions are visible on the screen. The idea was that we would put four actors on each of these, so that when the player selects them, the colour of the character in the following scenes where the gameplay takes place would be the colour that they selected.
So we need to make it so that when the player clicks this actor, the character and its animations of missing or catching the object are consistent with the colour selection. If they do select a different colour we need to make sure that the actors image is the only thing changing, so that the main character still has all of its attributes (such as when it catches the object, +1 added to the score). Would it be better to simply make entirely separate scenes for the different colours?
Comments
A very tangled confusing question !
Which part of your character do you want to change the colour of ?
@Socks I thought it may be a bit confusing after I posted, so sorry about that.
Basically, there is one character. When it catches an object, two different images that follow, one where it catches the object, and another where it eats it. Then it reverts back to the original image. Whenever it misses an object, there is another image it switches to for less than a second before reverting back once again to the original image.
You asked "which part of your character do you want to change the colour of?" Well we want to change the entire character's colour. We already have four different versions of the character, we just want to be able to switch them when we want. When the player selects the blue version, we want the character's colour in the game play area to be what they selected, which means the "catching," "missing," and "eating," images would also need to be blue.
Ah, I see, I was thinking you wanted to change the colour of the character within GameSalad - but you simply want to change which image the actor is using.
That's simple enough, you can do it using the change attribute behaviour.
Change Attribute - self.image to the player's selected image.