In this add-on,
you will set certain costumes to a random color
each time they appear on the screen.
This is a challenge add-on,
so this video will not give you all the steps,
but it will help you get started.
To start, select the Objects sprite.
Decide which objects will change colors.
In this example, the trees and flowers
will stay the same color,
and the mountain and the house costumes
change to a random color each time they appear.
To make this happen,
create a conditional statement that says,
if the costume number equals the costume
that will change colors,
then set the color effect to a random number.
To change colors for multiple costumes, use an or block.
Add this code before the show block,
and the when I start as a clone block stack.
You can also program the clones
to all set to the same color effect
or change to a random color for all the costumes.
Now it's your turn.
Create a conditional statement that reads,
if the costume number equals a certain number,
then set the color effect to a random number.