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

Sweep a pool of light across the wall

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

11 / THE MOUSE FLASHLIGHT

For a flashlight in the spirit of Zak McKracken and the Alien Mindbenders, dim the room first. PCA’s built-in Enable / Disable Flashlight Mode brightens the rendered room around the pointer. A bright room gives that pool very little to reveal. A little base light lets the player find their way back.

1. Try the circle. The last line inside light_passage already turns it on. radius is in viewport pixels, so 140 gives a manageable circle. strength of 3 makes the center stand out. For a harder-edged, more rectangular retro look, change "circle" to "square" or "rectangle". The mouse keeps its usual click-to-walk and interaction controls.

Two frames from the same corridor. The pointer moved from left to right. The room camera and Pip stayed put.

2. Stop the beam outside the corridor. Create the PCA Script below. In Service Corridor › Room Events › When Leaves Room select Run Visual Script › Beam Off. Also append Beam Off to the ordinary entry actions of Gatehouse and any other room Kit can occupy. Character switching can take a different route from walking through a door. Relay Room already clears the beam in relay_dress.

beam_off / PCA SCRIPT

Code example
function run()
    let beam = set_flashlight_mode({"enabled":false})
end

3. Let the camera follow Pip gently. Select the corridor camera, set Position to 0, 3.1, 6.2, Look Target to 0, 0.9, −1.2, and Field of View to 48. In Dynamic Follow › Camera Tracking Mode choose Use Custom Settings. Check Follow Active Player. Choose Smooth Follow (Continuous), axes X, Pan Smoothing 3 and Movement Look Ahead 0.25. Apply and walk sideways. The camera follows Pip. Moving only the mouse moves just the light.

Pointer or lantern? Stand still and sweep the pointer to the far wall. The pale pool should follow it while the amber patch stays with Pip. Next, walk Pip a few steps. The wick and the amber patch should move together.

Page 12 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