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!

Scegli un’estensione
Fare il restyling
Crea un nuovo accessorio per il tuo progetto.
Il mouse vistoso
Programma il tuo strumento stilista per creare una scia colorata che si muove all'interno dello schermo.
Il gioco dello stilista
Trasforma il tuo strumento da stilista in un gioco che permetta all'utente di sfidare il timer per abbigliare la modella.
Anima la modella
Programma la tua modella ad animarsi quando gli si pone sopra un accessorio.
Il critico di moda
Crea un critico di moda e programmalo affinché fornisca un feedback per il progetto dello stilista.
Il suono (Sfida)
Aggiungi dei suoni al tuo progetto
arrow_backward Indietro
Avanti arrow_forward
Istruzioni
  1. Fai clic su qualsiasi casella per controllare il video sui componenti aggiuntivi.
  2. Quando hai terminato, torna sulla schermata dei componenti aggiuntivi e prova un altro componente aggiuntivo.