Text
Text spawned by spawnText: change it with set, restyle it with tint and alpha, remove it with destroy.
Properties
Section titled “Properties”alpha:
number
Opacity of every character, 0–1. Setting it fades the text (blink, fade out).
entities
Section titled “entities”
readonlyentities:number[]
One sprite entity per visible character.
tint:
number
Color of every character, 0xRRGGBB. Setting it recolors the text.
readonlyvalue:string
readonlywidth:number
Width of the widest line, in pixels.
Methods
Section titled “Methods”set(
value):void
Replaces the text, keeping position and style.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
