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
- Open the Cinematic panel from the drawer (or find a cinematic with Ctrl+K,
calone for cinematics). - Press New and name it.
- Press Lane to add lanes: camera, dialog, units, the screen's fades and letterbox, sounds, or your game's own.
- Press K to key the camera where the view looks; drag the camera's path and handles on the map.
- Add clips and keys on the lanes; select one to set its fields in the Inspector.
- 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
- Pick a cinematic in the Content drawer.
- Click (or drop) it on the map: that puts down a region that plays it.
- 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.jsontracks 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,LaneRegistryandcameraPoseAtare what the panel edits and draws with.