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!

Erweiterung auswählen
Kostüme umgestalten
Ein neues Accessoire für euer Projekt erstellen.
Bunte Spuren hinterlassen
Euer Modeschöpfer-Werkzeug so programmieren, dass ihr damit eine farbige Spur auf dem Bildschirm hinterlassen könnt.
Ein Modeschöpfer-Spiel programmieren
Euer Modeschöpfer-Werkzeug in ein Spiel verwandeln, mit dem der Nutzer das Model im Wettlauf gegen die Zeit stylen muss.
Das Model animieren
Euer Model so programmieren, dass es sich bewegt, wenn es ein neues Accessoire erhält.
Feedback hinzufügen
Ein Programm erstellen, um das Modeschöpfer-Projekt zu bewerten.
Einen Klang hinzufügen (Herausforderung)
Eurem Projekt einen Klang hinzufügen.
arrow_backward Zurück
Weiter arrow_forward
Anweisungen
  1. Klickt auf ein beliebiges Feld, um zum Erweiterungs-Video zu gelangen.
  2. Wenn ihr fertig seid, kehrt zum Erweiterungen-Bildschirm zurück und probiert eine andere aus!