Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back In the Zone


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 a 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 out a “switch backdrop 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, then on the scripts tab. Click on the dropdown menu to see the different backdrops, and select “neon tunnel.” Click the block to try it out. Neat!

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. 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.

Choose an Add-On
Add music that will play while the athletes showcase their moves.
Showcase your Moves
Program the athletes to get active by moving around the stage.
Changing Colors
Make the sprites change colors similar to how athletes wear different jerseys.
In the Zone
Program the sports commentator to give the athletes a performance boost.
Compliment Competitors
Have the sprites admire one another's moves.
Add Another Athlete
Add another athlete to the project.
arrow_backward Back
Next arrow_forward
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!