Skip to reading
The Cutscene Designer

46. Wrap playback in one cleanup route

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

The intro_once script starts the cutscene, waits for it to finish or be skipped, then establishes the intended playable state. That puts essential cleanup outside the part of the timeline that can be skipped.

Source table from 46. Wrap playback in one cleanup route, page 50
Wrapper stepWhy it is there
Check intro_seenAvoid accidental replay through another launch route.
Save the current walking speedRestore a temporary cinematic speed afterward.
Show skip controls when skippableProvide a deliberate touch/mouse skip route.
Await StartCutsceneRun the remaining script after playback returns.
Hide title, skip and speech GUIsClose authored overlays on both exits.
Stop the intro sound and voiceAvoid stray audio after the handoff.
Stop movement; restore speed; place IvoEstablish the same final mark after a skip.
Return actors to idle; set intro_seenResume a clean game state and remember completion.

The complete script appears in Appendix B. It is intentionally specific to this workshop: ada and elias must be present in lab. Adapt the IDs and intended ending positions to your game.

This workshop uses an outer wrapper. A managed cutscene can put shared cleanup in its finished hook. Give a reward to one route so it is granted once.

0.86.4.3 / Preview, cue timing and hooks > Page 74

Cutscene Designer | 0.86.4.3

Page 50 of 78Permalink
Go to page