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 Fai i complimenti agli altri


In this add-on, you’ll program your athletes to compliment one another’s moves after they finish performing. In this example, athlete2 is going to show athlete1 some love by shouting out their favorite move.

Click on athlete1. Drag out a “broadcast” block from the events menu, and snap it to the bottom of the performance block stack. The “broadcast” block sends a message to all the sprites, which then receive the message and run code.

Click on the dropdown, and click “new message.” This example will name the message “athlete1 done” because it will signal when athlete1 is finished performing so other sprites in the program can run code. Next, add code to shout out athlete1’s favorite move. Click on the athlete2 sprite. Every “broadcast” block needs a “when I receive” event, so when "broadcast" sends a message, a sprite will receive the message and run code. From the events menu, add a “when I receive” block, and make sure the message names in both blocks match. In this example, that’s "athlete1 done."

To show some support for athlete1, drag out a “say” block from the "looks" menu. Decide what awesome things your sprites will say to show their support. This example says “Woah, that was awesome.” Check it out by pressing the number 1 on the keyboard. Sweet! After athlete1 finished its moves, athlete2 gave it a compliment.

Here's the game plan: Add a “broadcast” block at the end of the athlete's routine. Place “when I receive” blocks and "say" blocks in the other athletes' scripts. Repeat this same process for each sprite.

Now your athletes will show off their good sportsmanship and compliment one another.

If you have a question or if you need help, ask your neighbor or get the attention of your CS First Host or Guru.

Scegli un’estensione
Aggiungi una musica di sottofondo mentre l'atleta sfoggia le sue mosse.
Anima l'atleta facendolo muovere per il palco.
Colori cangianti
Cambia il colore degli sprite proprio come gli atleti cambiano maglia.
Bel colpo
Ordina al cronista sportivo di incoraggiare gli atleti.
Fai i complimenti agli altri
Gli sprite si complimentano a vicenda per le loro mosse.
Aggiungi un altro atleta
Aggiungi un altro atleta al progetto.
arrow_backward Indietro
Avanti arrow_forward
  1. Guarda il video di introduzione.
  2. Scorri verso il basso per visualizzare i componenti aggiuntivi scelti.
  3. Seleziona un componente aggiuntivo e inizia a creare!
  4. Scegli un altro componente aggiuntivo e continua a costruire.