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

Let the player turn the regulator around

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

12 / INSPECT THE ARTIFACT

1. Build the inspection window. Open GUI Designer › dial_view. Choose Add Element › 3D Model. Set ID face. Use a Top Left anchor and X 300, Y 90, Width 680, Height 395 on the Part 4 1280 × 720 design canvas. Under Images › Media Asset, select the clock asset. Choose a dark background so the brass face reads clearly.

2. Turn on inspection controls. In Type Settings › 3D Model, use Starting Camera Distance 0 for auto-framing. Click Center & Fit Model. Enable Allow Player Controls, Orbit Model and Zoom Model. Once you wire the clock on the next page, use Play / Restart and open it. Drag left or right across the model to rotate it. Scroll over the model to zoom. Touch users can drag with one finger and pinch to zoom.

The model appears in its own view. The Inspect button gives Pip a usable clue. Close lets the player leave without taking the clue.

3. Add two buttons. Place Inspect the winding spindle at 300, 495, size 470 × 58. In the button’s Events › Click choose run-visual-script and target expose_socket. Place Close at 790, 495, size 190 × 58, with Click behavior hide-gui, target dial_view. Save. Explicitly examining the spindle unlocks the key route. Rotation is for the player to explore.

expose_socket / PCA SCRIPT

Code example
global socket_seen = false
Code example
set socket_seen to true
hide gui dial_view
show message "Pip: A square spindle. The long key could turn that."
Page 13 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