← Code

Construct games

Build games in the browser with behaviours and events.

Start1. A first game in Construct
For teachers Usually Years 7–8 · 1 lesson

Make games with Construct 3, a game engine that runs in the browser. Instead of writing code line by line, you give objects behaviours (so the engine moves them) and write events: rows that say when something happens, then what to do. The first lesson builds a small game with Construct's own guided tour and works out what makes each part happen. You can start here, or after App Builder apps, which teaches events, variables and picking with apps; those ideas then come back here as review in a game. The free edition, with no sign-in, is enough for every lesson planned here.

  • Usually Years 7–8
  • Lessons 1, 10 coming later
  • Do first No earlier course needed
Teacher guide

Standards, in general: main focus: Trace algorithms for errors (8P06). What this means

Start here

Build a first game with Construct's guided tour, then work out which parts the engine moves and which an event makes happen.

1A first game in ConstructNot started

Build Spell Caster, a small top-down game, with Construct 3's own guided tour (or its written Beginner's guide), then work out what makes each part happen. A behaviour is something the engine does for an object every moment, such as moving it with the arrow keys or flying it forward. An event is a row that says when something happens and what to do then, such as spawning a spell when the mouse is clicked.

  1. Do the arrow keys work?
  2. Build it: Spell Caster
  3. Behaviour or event? › Sort them
  4. Behaviour or event? › Green arrows
  5. Behaviour or event? › Find Nib's mistake
  6. Change one thing › Predict the change
  7. Change one thing › Try it
  8. Stronger spells › Find the right event
  9. Stronger spells › Make it yours
Start lesson

Objects, behaviours and events

Coming later

One idea per lesson: copies of an object, behaviours, the event sheet, triggers, picking, variables, sub-events and time. Events, picking, variables and sub-events are review for students who did App Builder apps.

·Objects and layoutsComing later

One object type, many copies, each with its own position.

·BehavioursComing later

Give an object a behaviour and the engine moves it.

·EventsComing later

The whole event sheet is checked every tick, top to bottom.

·Triggers and every tickComing later

Some conditions fire once at the moment; others are true while they hold.

·PickingComing later

An action applies only to the copies its conditions picked.

·VariablesComing later

A score for the game, and health for each goblin.

·Sub-events and ElseComing later

A sub-event only runs for what its parent picked.

·Spawning and timeComing later

Every few seconds, a new enemy.

·Groups and game statesComing later

Switch a group of events on or off for title, play and game over.

Final challenge

Coming later

A complete game in 50 events or fewer.

·A game in 50 eventsComing later

Build a game in milestones, counting your events as you go.

Progress is saved in this browser only. Nothing is sent anywhere.

For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)