Looks functions
Free functions you can call directly in sprite code.
changeEffect
Section titled “changeEffect”changeEffect(effect: string, amount: number): voidChange a graphic effect by an amount.
See also Sprite.effects
changeSize
Section titled “changeSize”changeSize(amount: number): voidChange this sprite’s size by an amount.
See also Sprite.size
Used by
clearEffects
Section titled “clearEffects”clearEffects(): voidRemove all graphic effects from this sprite.
See also Sprite.effects
getCostume
Section titled “getCostume”getCostume(): stringGet the name of the current costume.
See also Sprite.costume
getCostumeNumber
Section titled “getCostumeNumber”getCostumeNumber(): numberGet the current costume number.
See also Sprite.costumeNumber
getCostumes
Section titled “getCostumes”getCostumes(): string[]Get the names of all costumes.
See also Sprite.costumes
getSize
Section titled “getSize”getSize(): numberGet this sprite’s current size percentage.
See also Sprite.size
getVisible
Section titled “getVisible”getVisible(): booleanGet whether this sprite is currently visible.
See also Sprite.visible
hide(): voidHide this sprite.
See also Sprite.visible
Used by
nextCostume
Section titled “nextCostume”nextCostume(): voidSwitch to the next costume.
See also Sprite.costumeNumber
Used by
prevCostume
Section titled “prevCostume”prevCostume(): voidSwitch to the previous costume.
See also Sprite.costumeNumber
say(message: string): voidShow a speech bubble with the given message.
See also Sprite.say
Used by
sayAndWait
Section titled “sayAndWait”sayAndWait(message: string, seconds: number): voidShow a speech bubble for a number of seconds, then continue.
⏸️ This pauses your script until it finishes — the next line runs only after it’s done.
See also Sprite.sayAndWait
setCostume
Section titled “setCostume”setCostume(costume: string | number): voidSwitch to a costume by name or number.
See also Sprite.costume
setCostumeNumber
Section titled “setCostumeNumber”setCostumeNumber(number: number): voidSet the current costume number.
See also Sprite.costumeNumber
setEffect
Section titled “setEffect”setEffect(effect: string, value: number): voidSet a graphic effect to a value.
See also Sprite.effects
setSize
Section titled “setSize”setSize(percent: number): voidSet this sprite’s size as a percentage.
See also Sprite.size
show(): voidMake this sprite visible.
See also Sprite.visible
Used by
think(message: string): voidShow a thought bubble with the given message.
See also Sprite.think
thinkAndWait
Section titled “thinkAndWait”thinkAndWait(message: string, seconds: number): voidShow a thought bubble for a number of seconds, then continue.
⏸️ This pauses your script until it finishes — the next line runs only after it’s done.
See also Sprite.thinkAndWait