Skip to content

CinematicTrack beta ​

Interface of @v12-engine/client

ts
export interface CinematicTrack

Deprecated

A track is three fixed lanes of a cinematic (CinematicDef: any lanes, markers, params, one file each in cinematics/); trackToCinematic makes one of it, and cut.track plays through that. Kept for a release

The part of a cinematic that is slow to write in code: where the camera is at each moment, which line is said when, which clip a unit plays. Made on the editor's timeline and kept in a game's tracks.json, played inside a cinematic by cut.track('intro') with whatever code it likes around it. The camera goes from key to key, straight between

Members ​

camera ​

ts
camera: TrackKey[];

The camera's keys in time order

clips ​

ts
clips: TrackClip[];

The clips units play, each at its moment

length ​

ts
length: number;

Seconds it lasts

lines ​

ts
lines: TrackLine[];

The lines said, each at its moment