Typewriter
Types out its entity’s Text a letter at a time, for dialogue and story cards. Whenever a script sets the text’s Value, the new text types out from the start. Runs on real time, so it works in a paused game.
Requires: Text (the text it types out)
Properties
Section titled “Properties”Each is listed as its key in the scene file and the MCP tools, then its kind of value, its default and what it does.
speed: a number = 30. Letters per second; 0 shows everything at once. (Field: a number.)punctuationPause: a number = 0.2. Extra seconds to wait after a full stop, question or exclamation mark (half that after a comma). (Field: a number.)sound: text = null. A sound played as letters appear, e.g. “Sounds/blip.wav”. Empty is silent. (A sound in Assets, e.g. “Sounds/hit.wav”.) (Field: a sound.)soundEvery: a whole number = 2. Play Sound every this many letters. (Only used when sound is set.) (Field: a number.)
While the game runs
Section titled “While the game runs”Not saved with the scene; scripts read them, and entity_get shows them as live while the game plays.
shown: a whole number. How many letters are showing.isDone: true or false. True once the whole text is showing (and always outside a running game).
Scripts use it as Typewriter: its methods, events and values that aren’t saved with the scene.