We build the story
Section 9: The big project: an interactive storyLesson 9.2 · ⏱ 12 min
📌 Note
Add a character: tap ➕ next to the characters and pick one. Tap a character to code it: every character has its own blocks.
🤖 Robo

- When 🚩 is tapped
- Say 💬 “Where is the cat?”
- Move right ➡️ 11
- Send a yellow message ✉️
- When a green message arrives 📩
- Say 💬 “I found you! 🎉”
- Hop 🦘
🐱 Cat

- When 🚩 is tapped
- Hide 🙈
- When a yellow message arrives 📩
- Show 👀
- Say 💬 “I am up here!”
- Move down ⬇️ 6
- Hop 🦘
- Send a green message ✉️



🖥️ What happens on the stage?
We ran the story in Robo Junior: both messages arrived, the cat talked, and Robo said “I found you”.
📌 Another example: the cat up in the tree
Another hiding place: the cat is at the top, Robo climbs up to her, and when he bumps her he stops and is happy.
🤖 Robo

- When 🚩 is tapped
- Say 💬 “Where is the cat? 🤔”
- Move up ⬆️ 10
- When it bumps into a character 💥
- Stop my other programs ✋
- Say 💬 “I found you up there! 🎉”
🐱 Cat

- When it bumps into a character 💥
- Say 💬 “Oh, you found me!”


✍️ Practise
Build the story, then change it: another character, or another hiding place.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
Swap the character: Robo looks for the dog, and the dog says “I am here! 🐶” when they bump.
👀 Show the solution🙈 Hide the solution
🤖 Robo

- When 🚩 is tapped
- Say 💬 “Where is the dog?”
- Move right ➡️ 11
🐶 Dog

- When it bumps into a character 💥
- Say 💬 “I am here! 🐶”

Medium
The cat is hidden 🙈, and shows when Robo arrives and sends a message.
👀 Show the solution🙈 Hide the solution
🤖 Robo

- When 🚩 is tapped
- Say 💬 “Where is the cat?”
- Move right ➡️ 12
- Send a pink message ✉️
🐱 Cat

- When 🚩 is tapped
- Hide 🙈
- When a pink message arrives 📩
- Show 👀
- Say 💬 “I was hiding! 🙈”

Hard
A hide-and-seek game with two hidden characters: each message shows one of them.
👀 Show the solution🙈 Hide the solution
🤖 Robo

- When 🚩 is tapped
- Say 💬 “I will look for you both!”
- Move right ➡️ 5
- Send a pink message ✉️
- Wait ⏱ 2
- Move right ➡️ 5
- Send a yellow message ✉️
🐱 Cat

- When 🚩 is tapped
- Hide 🙈
- When a pink message arrives 📩
- Show 👀
- Say 💬 “You found me!”
🐶 Dog

- When 🚩 is tapped
- Hide 🙈
- When a yellow message arrives 📩
- Show 👀
- Say 💬 “And I'm here! 🐶”


