Skip to content

Looks functions

Free functions you can call directly in sprite code.

changeEffect(effect: string, amount: number): void

Change a graphic effect by an amount.

See also Sprite.effects

changeSize(amount: number): void

Change this sprite’s size by an amount.

See also Sprite.size

Used by

clearEffects(): void

Remove all graphic effects from this sprite.

See also Sprite.effects

getCostume(): string

Get the name of the current costume.

See also Sprite.costume

getCostumeNumber(): number

Get the current costume number.

See also Sprite.costumeNumber

getCostumes(): string[]

Get the names of all costumes.

See also Sprite.costumes

getSize(): number

Get this sprite’s current size percentage.

See also Sprite.size

getVisible(): boolean

Get whether this sprite is currently visible.

See also Sprite.visible

hide(): void

Hide this sprite.

See also Sprite.visible

Used by

nextCostume(): void

Switch to the next costume.

See also Sprite.costumeNumber

Used by

prevCostume(): void

Switch to the previous costume.

See also Sprite.costumeNumber

say(message: string): void

Show a speech bubble with the given message.

See also Sprite.say

Used by

sayAndWait(message: string, seconds: number): void

Show 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(costume: string | number): void

Switch to a costume by name or number.

See also Sprite.costume

setCostumeNumber(number: number): void

Set the current costume number.

See also Sprite.costumeNumber

setEffect(effect: string, value: number): void

Set a graphic effect to a value.

See also Sprite.effects

setSize(percent: number): void

Set this sprite’s size as a percentage.

See also Sprite.size

show(): void

Make this sprite visible.

See also Sprite.visible

Used by

think(message: string): void

Show a thought bubble with the given message.

See also Sprite.think

thinkAndWait(message: string, seconds: number): void

Show 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