Skip to content
Your progress

Checking your sign-in…

Who's learning?

Each profile keeps its own read lessons, badges, streak, and practice scores on this device.

Lesson 3 of 8

Waiting for something to happen

Show on a big screen

5 min

Text size

Tap Run and the game ends before your finger leaves the screen. A game must wait for you.

A group waits: when tapped, add 1.
Step 1 of 4
  1. A group waits: when tapped, add 1.
  2. Tap the mango.
  3. The group starts.
  4. It runs. score becomes 1.

An event is one thing that happens. A tap, a key press or a click is an event. The flag is the button that starts a game.

An event block names one event. The blocks under it form a group. The group runs when that event happens.

Rule: An event block names one happening. Its group runs only when that happening comes. So the game can wait for your tap.

A program can have many groups. Each waits for its own event.

Three groups wait. Make score end at 6. Use each event once at most.

Loading lab…

Try the lab to finish this lesson.