Skip to content

Please update your browser

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

Transcript

In this add-on, you’ll program music that will play while your athletes showcase their favorite moves. To get started, click on the sports commentator sprite. Next, click on the sounds tab, then on “choose new sound from library.” You’ll find many different sounds here that you can use in your program. There are different categories of sounds.

Click on the “Music Loops” category on the left to see different music loops, or short sections of music tracks. Press the “play” button on a sound to hear it. When you find a song you like, click it, then click “OK.”

You can now add the new sound you chose to your project. To do that, click the "scripts" tab, click the "sound" menu, and drag a “play sound until done” block into the script editor. Make sure the sound you chose is selected in the dropdown.

The “play sound” block plays a sound without pausing the rest of the code. This block is mostly used for quick sound effects. The “play sound until done” block, on the other hand, doesn't run the code below it until the sound finishes playing. For this example, use a “play sound until done” block to prevent your background music from being cut short.

Since the music should play continuously during your performance, select a “forever” loop from the “control” menu, and place it around the “play sound until done” block.

To make this code start at the beginning of your athletes’ performance, add a “when flag clicked” event to the top of this code stack.

Click the flag to test your code. Background music plays as your athletes perform.

Cool! Here's the game plan: Add a sound from the sound library. Add a “play sound until done” block inside a “forever loop.” Don’t forget to add the “when flag clicked” event so the music plays at the beginning of your athletes’ 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.