Skip to reading
First Light, Part 2: Three Knocks

Give the game one thing to remember

Edition 0.86.3.4

Part 2 of the First Light course. Import Kit and Pip’s models, assign idle and walk clips, add a one-time clock response, check player saves and run a compiled desktop build.

Download PDFView illustrations

04 / THE CLOCK

Should the clock strike every time Pip uses the key? We want it to strike once in each playthrough. After that, the player can listen for the knocks again. One yes-or-no value is enough to remember the difference.

1. Add the value. Under Adventure Database, choose Add › Variable and open the new record. A variable is a named place where the game keeps a value that can change while you play.

2. Start with the clock unwound. Enter the settings below. A Boolean is the editor’s word for true or false. With both boxes clear, this one starts as false.

Source table from Give the game one thing to remember, page 5
FieldWhat to enter
Variable IDgame_completed
NameGame completed
Value TypeBoolean
Leave Blank At StartUnchecked
Initial Boolean ValueUnchecked (false)

[1] Give the flag this exact ID. [2] Select Boolean. [3] Keep both boxes clear.

3. Apply and save. Click Apply Changes, then Save Project. When Pip winds the clock, the next page’s script changes the value to true. Saving during play stores that value in the player’s save slot.

The game can now have two histories. A save made before the chime remembers an unwound clock. A save made afterward remembers a wound one. You’ll try both on page 8.

Page 5 of 9Permalink
Go to page

Continue your 3D adventure

  1. Part 1First Light, Part 1: Your First 3D Adventure
  2. Part 2First Light, Part 2: Three Knocks
  3. Part 3First Light, Part 3: Behind the Wall
  4. Part 4First Light, Part 4: The Message in the Machine
  5. Part 5First Light, Part 5: The Clockmaker’s Secret
  6. Part 6First Light, Part 6: The Final Hour