In this video, you’ll program the narrator to broadcast the first message to the maincharacter. This example starts with the narrator makingthe main character dance, but you can start with any message you like. What happens firstdepends on your character’s personality and what you want to show the audience aboutthat character. Select the narrator to start programming it.
The main character needs to know when the narrator is done speaking, so it can startdancing. To broadcast that message, drag out a “broadcast” block, and select the actionthe main character will perform in the dropdown menu.
In this example, the main character will dance, so “dancing” is selected in the dropdownmenu in the “broadcast” block. Click on this code to test it. The narrator talks,then the main character dances! Great.
Next, in this example, the narrator talksabout the main character breathing fire and broadcasts a message to make the main characterperform that action. In your project, program the main character to perform any action youlike, and make the narrator talk and broadcast a message based on that reaction.
Keep adding the “broadcast” block and selecting messages in the dropdowns to makethe main character perform the actions in the story.
Click on the code. The narrator talks, the main character performs an action, the narratorkeeps talking, the main character performs another action.
Using the “broadcast and wait” block instead lets the character complete the action beforethe next block runs. Watch this example to see how it works.
Whether you use the “broadcast” or the “broadcast and wait” block depends onhow you want to tell your story. Make the messages broadcast in a way that makes sensefor your story.
If you get stuck, your neighbor or your Guru might be able to help you find a solution.
Go ahead and ask them!
Finally, add the “when flag clicked” block to the top of the narrator’s story so theaudience can run your program by clicking the green flag.
The next video will discuss how to create your own broadcast message!
Now, it’s your turn: Insert “broadcast” or “broadcast andwait” blocks in your narrator’s story where appropriate.