In this video, you'll learn
the Scratch programming language
and program a sprite to talk about one
of the following fashion story starters.
My personal style is to put together an outfit, first you,
and if I could dress any way I wanted, I would ...
This starter contains three sprites,
an android, an object, and a thought bubble sprite.
In this video, you'll use only the android sprite
so all the code you write for this activity
will be a part of the android.
Click on the android sprite.
The code blocks in the palette control
what the android sprite does.
To see what a block does, just click it.
To select a block to use in your program,
click and drag it into the scripts area.
Drag a say block into the scripts area.
Many blocks have values that you can change
by clicking on them and typing.
Type the fashion story starter you chose into the say block.
This example uses, if I could dress any way I wanted,
I would, but you should use the option you like best.
Click the say block to try it out.
Great, it worked.
The sprite in this example says,
If I could dress any way I wanted, I would ...
Now that you have a code block in your program,
make it run with the play button.
In Scratch, the flag can be programmed to run your code.
Click events and snap a when flag clicked block
above the say block.
Blocks that are connected together are called a block stack.
In a block stack, each block runs in order
from top to bottom.
The computer reads the instructions you create
to make sprites perform specific actions in your program.
When a computer scientist tells a computer
to read and carry out instructions,
it's called running the code.
This block stack reads, when flag clicked, say,
if I could dress any way I wanted, I would ...
Click the flag to run it.
Awesome.
Now it's your turn.
Select the android sprite, the looks menu,
and drag out a say block.
Type a fashion story starter into the block.
Select the events menu and add a when flag clicked block.
Once you've completed this step, click the green arrow
below this video to move on,
and program the rest of your fashion statement.