Skip to reading
The Cutscene Designer

29. Show a caption, name or changing value

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

ShowMessage is useful for narration or a short caption that does not belong to an ordinary character Line. Set its block Duration in seconds; applying the event writes the action’s duration in milliseconds.

Code example
{
  "type":"ShowMessage",
  "text":"Later that afternoon...",
  "duration":2500,
  "blockInput":false
}
Source table from 29. Show a caption, name or changing value, page 33
Text tokenDisplayed value
@PlayerNameThe active player’s display name.
@SceneNameThe current scene name.
@ScoreThe score variable.
$$variable_idThe value of a project variable.

For example, Welcome back, @PlayerName. follows the active player’s name. Tokens supply text; they do not change a variable. An unknown variable token remains visible so you can spot the missing definition or spelling error.

The cutscene’s input-lock option already controls ordinary gameplay input. A caption’s blockInput field is a separate local presentation decision; do not scatter extra locks through every caption unless you need them.

Caption appearance belongs to the relevant message/narrator interface. A title composed of several carefully positioned elements is usually better as an authored GUI.

Page 33 of 78Permalink
Go to page