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

Let a thin wisp follow Nell’s hand

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 PDF page

04 / SMOKE AND ROOM STATE

1. Create the smoke. In Relay Room choose Add to Scene › Particles. Give it ID thin_smoke. Under Particle Settings choose Clouds, then apply the preset. Use the following settings to turn the cloud bank into a few small puffs. The motion fields may be on Motion & Emission.

Source table from Let a thin wisp follow Nell’s hand, page 5
Clouds settingEnter
Amount / Lifetime / Particle Size / Opacity8 / 1.4 s / 0.06 / 0.48
Direction / Gravity / Emission Area Extents0, 1, 0 / 0, 0.12, 0 / 0.01, 0.01, 0.01
Velocity Min / Max / Spread / Preprocess0.12 / 0.22 / 9° / 0.4 s
Primary / Emission Color#C4C1B9 / #DDD7C9. Leave Emit In Game on. Turn off turbulence and Use Local Coordinates.

2. Fill in relay_dress. Add the following PCA Script. The first attachment puts the cigarette in Nell’s hand. The second puts the smoke on the tip. With alignRotation false, the smoke rises even when Nell lowers her hand. The light beside the bench uses the repair flag.

relay_dress / PCA SCRIPT

Code example
global lamp_ready = false
Code example
global lift_stage = 0
Code example
function run()
Code example
    let off = set_flashlight_mode({"enabled":false})
Code example
    let bench = set_object_visible({"entityId":"bench_glow","visible":lamp_ready})
Code example
    let paper = set_object_visible({"entityId":"folded_note","visible":false})
Code example
    let ready = lift_stage == 4
Code example
    let stick = set_object_visible({"entityId":"paper_roll","visible":ready})
Code example
    let mist = set_object_visible({"entityId":"thin_smoke","visible":ready})
Code example
    if ready
Code example
        let held = attach_points({"entityId":"paper_roll","point":"grip","targetId":"nell","targetPoint":"offer"})
Code example
        let plume = attach_points({"entityId":"thin_smoke","targetId":"paper_roll","targetPoint":"ember","alignRotation":false})
Code example
    end
Code example
end

3. Connect it to Part 4. At the bottom of the existing relay_sync GDScript, add the line below inside func run(). Indent it four spaces, level with the first var stage line. It must run even when the camera reveal has already played. Part 4 calls relay_sync both on room entry and immediately after opening the shutter.

Code example
await CallScript("relay_dress")

Before stage 4 the paper and smoke stay hidden. After Nell is freed, her hand carries the prop. If the smoke covers her face, reduce particle size and amount first.

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