Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
In this add-on, you'll use cool effects
in Scratch to make it look like the stadium
is celebrating with the athletes.
First click on the stage to make sure
you're programming it, not the sprite.
From the Looks menu, drag the change effect by block
into the scripts area.
There's a drop-down
with lots of different choices to explore.
Right now it reads change color effect by.
Click on the block.
The background changes colors.
Try a different effect from the drop-down,
such as whirl, or fisheye.
Choose an effect you like.
To make the effect keep happening,
from the control menu, place a repeat loop
around the change effect by block.
Click on it and watch what it does.
Tinker with the values until you find something
that works for you.
Try combining different effects.
You can reverse the effect by using the negative number
opposite to the positive number you used,
repeated the same number of times.
In this example, the sprite changes the fisheye effect
by two, and the color effect by 10, 10 times.
Duplicate the block stack,
you can put a negative sign in front
of each of the numbers.
The background expands then contracts,
changing colors the whole time.
To return the background
to how it looked with no effects,
from the looks menu, use the clear graphic effects block.
To clear the background of effects
when the green flag is clicked,
place this block before the change effect by blocks.
Then from the events menu, place a when flag clicked block
on the top of the stack.
Here's the game plan:
change the backdrop graphics by clicking on the stage,
then using the change effect by block.
Repeat the changed effects.
Clear the stage of all graphic effects
when the flag is clicked.