In this add on you'll program your sprites
to change colors similar to how athletes
wear different jerseys.
First, decide which athlete gets to change into
more colorful apparel.
In this example, athlete two will be the one to showcase
a new uniform.
Click on athlete two.
The change effect by block from the looks menu has different
effects that will make the athlete's outfit change.
Drag out this block.
Right now it says change color effect by 25.
Click the block to try it out.
Try different values in the block like 10,
or maybe negative 20.
If you keep clicking it, your sprite changes colors to look
like it's wearing different outfits.
Sprites can change other effects besides color.
Click on the triangle drop down to see different effects
and select brightness.
Great! The sprites uniform gets brighter and brighter.
In baseball and basketball the home team will typically
choose to wear a lighter colored version of it's uniform.
In this example, athlete two wears a variation
of it's jersey so it has a slightly different uniform
for home and away games.
Place the change effect by block inside the repeat loop,
choose the effect you want and test your code by clicking
on the stack.
Drag out a clear graphic effects block to reset
your athlete's uniform to it's original color.
Snap it to the bottom of the repeat loop.
Click the block stack to check it out.
Notice how the sprite changed colors
before returning to normal.
All right, here's the game plan.
Add a change effect by and clear graphic effects block
to the repeat loop.
For an added challenge, use different effects so that your
athlete looks it's absolute best when it's performing.
Add music that will play while the athletes showcase their moves.
Program the athletes to get active by moving around the stage.
Make the sprites change colors similar to how athletes wear different jerseys.
Program the sports commentator to give the athletes a performance boost.
Sign in to save your project and track your progress.