Skip to reading
GDScript Programming & Godot

Gameplay: Cutscene control and timeline-specific actions

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

A timeline event has a start time and an action. Its event duration and the action's own timing are not always interchangeable. These five legacy pose/movement entries are offered by the Cutscene Timeline; they are not regular shared-list picker entries.

StartCutscene()#

Cutscene: Start

Start a Cutscene Timeline record and wait for its session.

Source table from Gameplay: Cutscene control and timeline-specific actions, page 223
Option key / fieldMeaning and inputDefault
Cutscene cutsceneIdChoose a Cutscene Timeline ID.Blank

Timing. Waits for the cutscene session.

Code example
await StartCutscene({"cutsceneId": ""})

In use. Choose Reveal the Signal from the lever's successful branch. Let the cutscene's input, HUD, skip and camera-restoration settings own the cinematic behavior. Avoid starting the same cutscene from its own first event.

EndCutscene()#

Cutscene: End

End the active cutscene, optionally restoring the camera.

Source table from Gameplay: Cutscene control and timeline-specific actions, page 223
Option key / fieldMeaning and inputDefault
Restore Previous Camera restoreCameraRestore the cutscene's previous camera when ending.true

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await EndCutscene({"restoreCamera": true})

In use. Use it when a branch should cut the sequence short. Keep critical puzzle state outside optional visual beats so skipping and ending early cannot leave the game half-repaired.

Page 223 of 378Permalink
Go to page