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 program the sports commentator
to give the athletes a performance boost.
First, decide what the sports commentator
is going to do to pump up the athletes.
In this example, the sports commentator
says a few encouraging words to get each athlete
to put on their game face.
Click on the commentator sprite.
Drag out a say block
and change its text to "get in the zone".
Try it out.
Next, drag a switch costume to block from the looks menu.
This block tells the computer to switch
to a specific backdrop.
To select a new backdrop, click on the stage,
then the backdrops tab,
and select the choose backdrop from library icon.
Choose any backdrop you like.
This program uses the neon tunnel backdrop.
Switch back to the code by clicking
on the commentator sprite.
Click on the dropdown menu to see the different backdrops
and select neon tunnel.
Click the block to try it out.
Reset the backdrop to its original
by adding another switch backdrop to block.
Click the dropdown menu and select the default backdrop.
In this case, building at MIT.
To set how long the performance boost lasts,
drag out a wait block from the control menu
and tinker with the value until you like
how long it stays in the zone.
Keep testing by clicking the block stack.
To give the athletes a performance boost
at some point in the program,
drag out a when Space key pressed event
and add it to the top of the code stack.
Press the Space key to see it work.
For an extra challenge, add a sound effect
that plays when the performance boost kicks in
using a sound block.
Alright, here's the game plan.
Add a say block and two switch backdrop to blocks
to the when Space key pressed event.
Then, add a wait block in between these two blocks.
As an added bonus, add a play sound block
to add a sound effect to the performance boost.