Please update your browser
Your browser version is not supported by this site. CS First may not work properly. Learn more.
In this add-on,
you'll add another object for your character
to encounter in your story.
Click on the object's trait
and the costumes tab.
You can choose a new costume from the scratch library.
You can upload an image from your computer
or you can draw your own image.
This video will show drawing a new image.
But you will follow the same steps,
no matter how you added the costume.
This example will showing drawing a duck.
But you will ad a costume that fits your story.
You can use filled circles and ovals
to easily draw many shapes and animals.
Choose the circle tool,
choose a color,
click the filled circle button
Give the costume a name that makes sense for what you drew.
You will use this name later.
Next, add an event,
so your new costume can be used in your story.
This project contains starter code
that allows the other costumes to be used in your story.
And you should understand this code to add your new costume.
Try clicking an event to see what happens.
Clicking "when I receive sign",
makes the store sign appear and move.
When the, when I receive signs tag has clicked,
a variable called costume stores the costume name sign.
Next, the create clone block,
instructs the computer to create clone or copy of the spray.
And that causes the,
"when I start as a clone block" stack to run,
which switches the costume
to whatever is stored in the variable costume.
In this example, sign.
To add code for your new costume,
click on the events menu
and drag out a, "when I receive block".
Click on the drop down,
select "new message"
and enter name that makes sense for the costume you added.
This example uses duck.
Add a set costume to block to the event stack.
Type the exact name of your costume in the set book.
In this example, the costume name is duck.
The name you type must exactly match
the name you used for your costume.
If you forget the name,
go back to the costumes tab to check it.
Now, click the stack tutorial.
Great, the variable stores the costume name duck.
Click the control menu,
add a create clone block to the end of your stack
and choose object from the drop down menu.
The costume variable set to duck,
a clone is created
and it glides across the screen.
Lastly, add your new costume into your story
so you can show it off.
Add a broadcast block from the events menu
and choose your new costume from the drop down.
Now it's your turn.
Add a new costume to the object's trait.
Name the costume.
Add code to make the costume appear.
Then add a broadcast block to tell your new object
when it is time to appear in the story.
Add sounds to your story.
Add another object for your character to encounter in your story.
Add a scene to the end of your story, and stop your character's walk.
Sign in to track your progress and earn badges