← Teacher guide

A chores checklist

Students build a checklist of jobs where each box is a Button whose text is ⬜ or ✅. They first build a tick that stays on, then try two separate On clicked events (which cancel each other on one click), then fix it with one On clicked event, a sub-event and an Else.

Construct apps · Apps that respond · about 60 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

Predict 3 min · Build it 30 min · Investigate 10 min · Modify 10 min · Make 7 min

Before class

The box characters ⬜ and ✅ are emoji. On most laptops they paste fine into a Button's Text property; if a laptop shows empty squares, use [ ] and [x] instead, and change the conditions to match.

Keyboard shortcuts in the event sheet: S adds a sub-event, X adds an Else, B adds a blank sub-event (no condition). Select the event first.

These steps were written fresh for this site and have not yet been checked click by click in the current editor. Run through them once before class; Construct updates itself, so a menu name may differ slightly.

A Button's Type property can be Checkbox, which ticks and unticks by itself (On checked, On unchecked). Mention it, but the lesson builds the toggle by hand so the logic is visible.

The one idea: on one click, every event whose conditions are true runs, top to bottom. One trigger with two branches (a sub-event and an Else) means exactly one runs.

Running the lesson

  1. Predict: most choose ✅. Leave it open; step 10 is the reveal.
  2. Build it: at step 10, ask a pair to explain what happened in order: first event, then second event.
  3. Investigate: draw the event on the board with the two branches as arrows. Only one arrow is taken per click.
  4. Modify: this is the review step. Ask which branch means 'just finished a job'.

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

The hard part (on purpose)

Building the version that doesn't work on purpose (steps 8 to 10) feels like wasted effort, and some students skip it. It's the point of the lesson: they need to see two flat events cancel before the sub-event makes sense.

When students get stuck

What you will seeA question to askThe fix
The box doesn't tick at all.What does the Compare text condition check for?It must be exactly the same character as the button's text. Copy and paste ⬜ from the button's Text property.
S or X does nothing.Is the event selected (highlighted)?Click the event's condition first, then press the key.
Done goes up when unticking.Which branch has the add 1?Add 1 belongs in the ⬜ branch (it's becoming ticked); subtract 1 in the Else.

Answers to the checks

  1. two events, one click: The box shows ⬜. These two events are the only ones on the sheet. You click the box once. What does it show?
    It still shows ⬜. On one click both events run, top to bottom. The first changes ⬜ to ✅, then the second sees ✅ and changes it straight back.
  2. Try it: two events, one click: This version has two separate On clicked events. Click a box a few times and watch both events light up.

    Both events run on one click: the first ticks the box, the second sees the tick and takes it away, so nothing seems to change.
  3. Trace a click: With the sub-event and Else, the box shows ✅. You click it once. What happens?
    The Else runs, so it shows ⬜
    The click triggers the event once. Its sub-event checks for ⬜, which is false, so the Else runs instead and sets the text to ⬜. Exactly one branch runs per click.
  4. Find Nib's mistake: Nib's box won't untick properly. Click the line where Nib first goes wrong.
    line 3
    Line 3: a second separate On clicked event also runs on the same click, straight after the first, and undoes it. The fix is one On clicked event with a sub-event and an Else.
  5. Why build it?: A Button's Type can be set to Checkbox, which ticks and unticks by itself. Why build it with events here?
    You can see how it works and use it for other things
    The built-in checkbox hides the logic. Building it with a sub-event and Else shows how a toggle works, and the same pattern works for anything: showing and hiding, colours, sounds.
  6. Where does it go?: A global variable Done counts ticked jobs. Where does "add 1 to Done" go in the BedBox event?
    In the ⬜ branch, beside setting the tick
    A job is done when it gets a tick, so add 1 in the branch that sets ✅, and subtract 1 in the Else that takes the tick away. Then set the text to show it.

Stretch and support

Stretch: Show "All done!" when Done equals the number of jobs. Which event checks it, and when?

Support: Give pairs the finished event as a picture (the table at the end of Build it) to copy, then ask them to explain each row.

Exit ticket

A light switch app has two events: On clicked and light is off → turn on; On clicked and light is on → turn off. What happens when you click, and how do you fix it?

Both run on one click, so it turns on then straight off. Fix: one On clicked event with a sub-event (light is off → turn on) and an Else (turn off).

What each step is for

Where it leads

Next: Water tracker, which keeps a display up to date every tick and checks a goal.