Variables functions
Free functions you can call directly in sprite code.
createVar
Section titled “createVar”createVar(name: string, initialValue: any, options?: { label?: string; style?: "normal" | "large" | "slider"; visible?: boolean; setValue?: (value: any) => void; step?: number; min?: number; max?: number; x?: number; y?: number; width?: number; height?: number }): voidCreate a variable, optionally with a watcher.
Delegates to Sprite.createVar
hideVar
Section titled “hideVar”hideVar(name: string): voidHide a variable’s watcher.
Delegates to Sprite.hideVar
moveVar
Section titled “moveVar”moveVar(name: string, x: number, y: number): voidMove a variable’s watcher to a position on the stage.
Delegates to Sprite.moveVar
setVar
Section titled “setVar”setVar(name: string, value: any): voidSet the value of a variable.
Delegates to Sprite.setVar
showVar
Section titled “showVar”showVar(name: string): voidShow a variable’s watcher on the stage.
Delegates to Sprite.showVar