CodeTeachers

Build a two-character Scratch joke where the punchline waits its turn

A beginner coding project that makes event messages visible and easy to debug.

By Ashley Kays Rabbitt · November 18, 2026

Choose two sprites, a penguin and a robot. The penguin asks, “What does a robot eat for breakfast?” The robot answers, “Microchips.” If both sprites start speaking when the green flag is clicked, the punchline may arrive before anybody reads the setup. That small comedy failure is a good first lesson in events.

On the penguin, start a script with when green flag clicked. Add say with the question for two seconds. Then add broadcast and name the message tell-punchline. On the robot, start a separate script with when I receive tell-punchline. Add say Microchips! for 2 seconds. Press the flag and watch which sprite starts each part.

The Scratch performance
PenguinAsk the question
RobotReceive tell-punchline
Third spriteReceive applause

Break it on purpose and explain what changed

Move the broadcast above the penguin’s question. Run the project again. Ask a learner to predict why the timing changed before moving the block back. The Scratch Foundation’s broadcasting guide shows how a message can trigger another sprite’s script. The message name is how the receiver recognizes the event. Scratch Foundation • Broadcasting

Add a third sprite holding an applause sign. Have the robot broadcast applause after finishing its line. The third sprite should show the sign only after it receives that message. Remember to hide the sign under its green-flag script so a second performance starts cleanly.

Invite a family member to replace the dialogue without changing the event names. If the joke still runs in the right order, the learner has built something reusable. Ask them to draw three boxes labeled question, answer and applause and write the message between each pair. That drawing is their first program map.