Broadcast and wait
Section 9: Messages: characters talk to each otherLesson 9.2 · ⏱ 6 min
broadcast and wait sends the message, then waits until all the blocks that received it have finished, then carries on. Useful for countdowns and scenes one after another.




📌 Note
Try the difference: change the block to plain broadcast. You will see “Go!” straight away with “3”, because it didn't wait.
📌 Another example: warm up before the race
broadcast and wait sends “warm up” and waits until the whole warm-up is over, then carries on: “Ready to race!”.




✍️ Practise
Make a countdown from 5 before Robo jumps.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
Robo sends “grow” and waits until he has grown 5 times, then says “I'm big now! 💪”.
👀 Show the solution🙈 Hide the solution



Medium
Robo waits for the cat to finish speaking, then he speaks.
👀 Show the solution🙈 Hide the solution




Hard
Robo sends “draw” and waits until the square is drawn, then says “Drawing done 🎨”. What happens if you use plain broadcast?
👀 Show the solution🙈 Hide the solution




