Skip to reading
First Light, Part 5: The Clockmaker’s Secret

Give the player three bell buttons

Edition 0.86.3.4

Part 5 of the First Light course. Add timed choices, object handoffs, an attached lantern, a pointer flashlight, a 3D inspection GUI, alternative puzzle solutions and speech presentation.

Download PDFView illustrations

13 CONTINUED / RECEIVER LAYOUT

2. Lay out pulse_panel. Make one Label and four Buttons. Use the Top Left anchor. The first row is the label text. For the three number buttons choose run-visual-script. Give each button its Click behavior and target under the selected element’s Events tab. In a text target field type the exact ID.

Source table from Give the player three bell buttons, page 15
TextX, YW × HClick behavior / target
BELL RECEIVER / ENTER THREE PULSES290, 200680 × 68Label only
1 / 2 / 3290 / 520 / 750, Y 280220 × 100 eachRun script pulse_1 / pulse_2 / pulse_3, respectively
Close740, 395230 × 55hide-gui pulse_panel

One button, one number. The button labeled 3 must send the number 3, even though it is the first correct press. The next page gives the three short button scripts and the shared rule that checks their order.

The receiver in play. Reading left to right, the buttons send 1, 2 and 3. Nell’s letter tells Pip which one to press first.

3. Fill in the three button scripts. Make each record send its own number. All three call the same function, so there is one place to change the puzzle.

pulse_1 / PCA SCRIPT

Code example
call script receiver_logic function press with 1

pulse_2 / PCA SCRIPT

Code example
call script receiver_logic function press with 2

pulse_3 / PCA SCRIPT

Code example
call script receiver_logic function press with 3
Page 15 of 20Permalink
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