Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

5. Broadcasting Your Own Message


In this video, you will create the message that tells the main character to start walking.

Click on the narrator sprite to make sure you’re programming it. Drag out the “broadcast and wait” block. Click on the dropdown. 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 that 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 is responding to the right message, check that “Walking” is selected in the dropdown menu. Click the green flag to test the code.

When the narrator tells the main character to walk, it should start moving. Great job!

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.

Now, its 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.

On the next page you’ll find some add-ons to help spice up your characterization story.

arrow_backward Back
Next arrow_forward
  1. Send the message that will make the character walk.
  2. Make the character walk when it receives the message.