Skip to content

Please update your browser

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

arrow_back Add a Third Character

Choose an Add-On
play_circle_filled
Add a Title Screen
In this add-on, you will design and program a title screen that will appear at the start of your story.
arrow_forward
play_circle_filled
Costume Animation (Part 1 of 2)
This add-on will show you how to animate your characters using costumes and some new “looks” blocks.
arrow_forward
play_circle_filled
Costume Animation (Part 2 of 2)
This add-on will show you how to animate your characters using costumes and some new “looks” blocks.
arrow_forward
play_circle_filled
Adding Motion (challenge)
In this add-on, you'll be introduced to the "glide" block, which you can then use to add motion to your story.
arrow_forward
play_circle_filled
Add a Third Character
In this add-on, you'll add a third sprite to your story using a "broadcast" block.
arrow_forward
play_circle_filled
Add a Second Scene to your Story (challenge)
In this add-on, you’ll learn how to add a second scene to your story, then you’ll program the dialogue in that scene on your own.
arrow_forward
  • 1. Introduction to Dialogue and Sequencing
  • 2. Setting the Scene
  • 3. Speaking and Responding
  • 4. Add-Ons
  • 5. Reflection
  • 6. Wrap-up: Dialogue
  • 7. Wrap-up: Share Your Project
  • 8. Wrap-up: Show Your Project
arrow_backward Back Next arrow_forward
Transcript

In this add-on, you’ll add a third sprite to your story using a “broadcast” block.

So far, you’ve sequenced dialogue using “wait” blocks. That works great with two sprites, but it can get complicated in longer stories and stories with more than one character.

The “broadcast” block makes complex stories easier to organize.

To start, plan for a third sprite in your story. In this example, a sprite will come in at the end and say a closing line. Select a third sprite for your project. This example will use a butterfly, but you can select any sprite you like. Then, program that sprite’s actions. This sprite starts at the top left.

Then glides to a position next to the duck. It then says, “We’ll miss you!” Click it to try it out.

Now that the basic programming is in place, it’s time to sequence this code with the rest of the story.

You could do this using “wait” blocks. However, you can also use a “broadcast” block.

The butterfly should run this code after the duck finishes talking. To do this, select the duck, go to the events menu, and place a broadcast block on the end of the block stack. Click the dropdown menu, and select “new message.” Name the message something that describes what the code will do. This example will use “Butterfly’s entrance.” When the “broadcast” block runs, it will send this message to the other sprites. The butterfly now needs to be programmed to receive this message. Click events, and drag out a “when I receive” block. Make sure the message name matches the name in the “broadcast” block. In this example, it'll be "Butterfly's Entrance."

Try it out!

Great! It works, but the sprite should go to the top left corner at the beginning of the program. Drag the “go to” block off the “broadcast” block, and instead have this code run when the green flag is clicked.

Great!

Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!