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 Booster la prestation

Transcript

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.

Choisir une extension
Musique
Ajoute de la musique qui sera jouée lorsque les athlètes présentent leurs mouvements.
Présenter tes mouvements
Programme les athlètes pour qu'ils s'animent et se déplacent sur la scène.
Couleurs changeantes
Fais changer de couleur les lutins un peu comme les athlètes qui portent des maillots différents.
Booster la prestation
Programme le commentateur sportif pour qu'il encourage les athlètes.
Complimenter les concurrents
Fais admirer les mouvements de leurs concurrents par les lutins.
Ajouter un autre athlète
Ajouter un autre athlète au projet.
arrow_backward Retour
Suivant arrow_forward
Instructions
  1. Regarde la vidéo de présentation.
  2. Défile vers le bas pour voir les extensions proposées.
  3. Sélectionne une extension et commence la création !
  4. Choisis une autre extension et continue à créer.