Skip to content

Cinematic panel ​

The Cinematic panel, in the bottom drawer, edits your game's cinematics on a timeline, one file each (cinematics/<id>.json). Every key, lane and field is in Cinematics › In the editor.

Make a cinematic ​

  1. Open the Cinematic panel from the drawer (or find a cinematic with Ctrl+K, c alone for cinematics).
  2. Press New and name it.
  3. Press Lane to add lanes: camera, dialog, units, the screen's fades and letterbox, sounds, or your game's own.
  4. Press K to key the camera where the view looks; drag the camera's path and handles on the map.
  5. Add clips and keys on the lanes; select one to set its fields in the Inspector.
  6. Press Space to play. Save with the map (Ctrl+S).

Preview it ​

  • Drag the playhead to scrub. Space plays and pauses; set a speed from 0.25× to 4×.
  • I and O set in and out, L loops between them, M sets a marker.
  • The preview runs a real world of the map, so units walk, fight and die as the cinematic orders them. Scrubbing replays from the nearest checkpoint, the same every time.
  • Play in game plays it in the game played here, with your game's code and hooks.

Edit clips and keys ​

  • Clips are bars and keys are diamonds: select, drag (they snap to each other, markers, the playhead and whole seconds), trim, split, copy and paste.
  • Lanes can be muted, soloed, locked, folded and reordered.
  • The Inspector shows what is selected: a lane's fields, an ease by its curve, a camera key's shot with Set from view.

Play a cinematic when a unit walks in ​

  1. Pick a cinematic in the Content drawer.
  2. Click (or drop) it on the map: that puts down a region that plays it.
  3. In the region's Inspector, set Played: as a unit walks in (once, for everyone), or by your game's code.

Fix names a cinematic uses ​

A cinematic that names a unit the map no longer has (a unit renamed) shows a problem in Problems. Click it to open the clip, and fix the name.

Reference ​

  • Every change is undone with the map's history and saved with it.
  • A region's cinematic is MapRegion.cinematic.
  • A lane of your own: Add a cinematic lane and Lanes of your own.
  • Old tracks.json tracks become cinematics with New › From a track or Import all of tracks.json; see What is deprecated.
  • For a panel of your own: cinematicEdits, CinematicFiles, readCinematic, writeCinematic, BUILT_IN_LANES, LaneRegistry and cameraPoseAt are what the panel edits and draws with.