World 2 · Events · Guide 4 of 5Free guide
Can I make a tapping game?
Tap, and it runs. Tap again, and it runs again. That's a game.
Meet the hat again
You already know the hat block. It waits for a tap, then runs the blocks under it. Here is the part you have not seen yet: a hat never gets used up. The moment it finishes, it goes back to waiting — so your next tap runs the same blocks all over again.
So one hat and one arrow can keep going all day. Tap, tap, tap.
See it work
The hamster's program is one hat and one block: right, three times. Watch what two taps do to it.
Nothing changed between the taps. The same three steps ran a second time, because the hat went back to waiting the moment it finished.
Your turn
Now you're the programmer.
Can you tap the hamster all the way to the carrot?
Press ▶, then tap the 🐹 until it reaches the 🥕.
Blocks
Your program
Go further
How many taps should your game take?
The carrot is six steps away, so the number on your arrow decides the answer. Try ×1 and tap six times. Try ×3 and tap twice. Every number gets there in the end — pick the one that feels most like a game.
For grown-ups
An event handler keeps listening after it runs, so one short script answers every tap — that input-and-response loop is what every game and every app is built on.
Keep going
Next in World 2Find the event bug →Where this goes
Make a game other kids can play
The blocks on this page are a first taste. In a Kubrio project your kid builds a real game — powers, triggers, levels and all — and other kids get to play it.
