Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
In this video, you will create the message
that tells the main character to start walking.
Click on the narrator sprite
to make sure your programming it.
Drag out the broadcast and wait block.
Click on the drop down.
There's no message for walking.
So click on New message to create one.
Name the message.
It will broadcast when the main character should walk.
So name it something that describes the action like Walking.
Next, program the main character to receive the message.
Click on the main character.
Go to the Events menu and find the when I receive block.
When the main character receives the walking message,
it should run the code you just wrote and start walking.
Place the when I receive block above the code
that makes the main character walk.
To make sure the main character's
responding to the right message,
check that walking is selected in the drop down menu.
Click the green flag to test the code.
When the narrator tells the main character to walk
it could start moving.
Finally, program the narrator to say something
to explain why the main character is walking.
Decide where the character is going.
The character could even meet someone along the way.
On the next page, you'll find some add-ons
to help spice up your characterization story.
Now it's your turn.
Add a broadcast block with a new message
to the narrator's code.
Place a when I receive block with that message
at the top of the code to make the main character walk.
Make the narrator explain why the main character is walking.