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

To start, add a new critic sprite. Click on “choose new sprite from library,” and add a new sprite. This project will use Boy2, but you can pick any sprite you would like for your project.

Next, make a list for this sprite. Make sure your new sprite is selected. Then, click on the data menu, and choose “make a list.” Name your list something related to what it will be about, like “Critique.” Then, click “OK.”

Computer science uses lists in many ways.

To create the critic list, use the plus button in the list to add the phrases that you want the critic to say when they appear on the stage. If you want to delete an item, click inside of it and click the "x" to remove it. Add as many items to your list as you would like.

Make these items things that would like sound feedback or comments that someone might say to a stylist.

You can hide or show this list at any time using the checkbox next to the name of the list. Once you complete your list, code the critic sprite to say random items from it. Drag out a “say” block, then place the “item of list” block inside it. To make your critic sprite say random items from the list instead of going down the items in order, click the dropdown button on the “item” block, then click “random.” Test your code. When you click on the blocks, the critic says a random item from your critique list. To make the critic say these items while you’re styling, use “broadcast” and “when I receive” blocks.

Click on the accessory sprite. Then, from the events menu, drag out a “broadcast message” block, and add it under the “stamp” block in your original code.

which comes in handy if you want to tell a sprite when to do something. The critic will only say something after you place an accessory on your model. Name your message anything that describes what your broadcast will do, like “critique,” by clicking on the dropdown inside the block, then clicking “new message.” Once you have a name, click on the critic sprite, and drag out a “when I receive” block. The “when I receive” block runs the code under it only when the broadcasted message is sent. Make sure the broadcast and receive messages match. In this case, they both say “critique.”

Test your code. Click the green flag, and whenever an accessory is stamped on your model, the critic sprite gives feedback. To hide your critic until it says something, add “show” and “hide” blocks to your code stack. Adding a “show” block before the critic says something and a “hide” block at the end makes the critic appear, give feedback, then disappear so you can see the entire stage backdrop.

Play around with your project and ask a neighbor to test out your code and style your model!

Choisir une extension
Relooker
Crée un nouvel accessoire pour ton projet.
Souris flashy
Programme ton outil de stylisme pour créer une trace de couleur lorsqu'il se déplace sur l'écran.
Jeu de stylisme
Transforme ton outil de stylisme en un jeu qui permet à l'utilisateur de faire une course contre la montre pour habiller le mannequin.
Animer le mannequin
Programme ton mannequin pour qu'il s'anime quand tu places un accessoire sur lui.
Critique de mode
Crée un critique de mode et programme-le pour qu'il commente le projet de mode.
Son (Défi)
Ajoute du son à ton projet.
arrow_backward Retour
Suivant arrow_forward
Instructions
  1. Clique sur l'une des fenêtres pour voir la vidéo sur les extensions.
  2. Quand tu as fini, reviens à la page des extensions et essaies-en une autre !