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 will program an audience for your fashion show that will appear at the end, and celebrate! First, you will need a crowd image. To obtain one, download it from the "images" link or copy it to your backpack from the "Additional Images Project" link on the add-on page. To learn how to add images to your Scratch project, watch the "Upload Images" video by clicking on its link on the add-on page.

You may need to use the shrink tool on Scratch to make the new image fit on your screen.

Next, program the sprite to “cheer” or “jump.” Drag the audience sprite to the bottom of the stage where it would start the jump. Then, drag out a “glide” block.

Next, drag the crowd to another space on your stage. Try moving it a bit higher and a little to the right or left. Your crowd should now glide from one x and y coordinate to another every second. Test this out! Cool. Place a forever loop around this code stack to repeat this action. Test it. If your animation is too slow, tinker with the seconds value in the "glide" blocks to make the crowd jump quicker... like 0.3 Make the audience start jumping when your designer enters the stage by receiving a broadcasted a message. The model sprite’s code already has a “broadcast” block at the end of it’s code stack. In this example, the broadcast block sends the message "enter stage".

On your crowd sprite, add a “when I receive” block to the top of your code to make the audience jump when they receive the broadcasted message from the model.

As an added challenge, use “hide” and “show” blocks to program the audience to hide when the green flag is clicked and to show when it receives the message “celebrate.”

Also, try coding your model sprites to do a little celebration of their own when they receive the “Enter Stage” message. Remember to use the “when I receive” block to prompt the code to start when you want it to. Write instructions for how to use your project, and show appreciation for anyone who helped you create it on the Project Page.

Now it’s your turn! Download the “crowd” sprite from the CS First image library. Then, program your crowd to jump using the forever loop and two glide blocks. Lastly, and a “when I receive” event to make your crowd cheer when the designer sprite enters the stage. Ask your neighbor if you need any help, or put up your sticky note to get the attention of your CS First Guru.

Choisir une extension
Mannequins stylés
Programme un lever de rideau pour ta cérémonie de récompenses.
Mannequins bavards
Crée une liste que les lutins Spectateurs utiliseront lorsqu'ils entrent sur scène.
Silhouette sautillante
Programme pour ton spectacle de mode un public qui apparaît à la fin et acclame les créations !
Trophée animé (Défi)
Code ton trophée pour qu'il fasse une animation pendant ton programme.
Applaudissements et musique (Défi)
Ajoute une boucle musicale ou des applaudissements à ton programme.
Arrière-plan scintillant (Défi)
Fais scintiller ton arrière-plan !
arrow_backward Retour
Suivant arrow_forward
Instructions
  1. Clique sur l'une des fenêtres pour accéder à la vidéo sur les extensions.
  2. Quand tu as fini, reviens à la page des extensions et essaies-en une autre !