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.
Delegates to Sprite.effects
changeSize
Section titled “changeSize”changeSize(amount: number): voidChange this sprite’s size by an amount.
Delegates to Sprite.size
clearEffects
Section titled “clearEffects”clearEffects(): voidRemove all graphic effects from this sprite.
Delegates to Sprite.effects
getCostume
Section titled “getCostume”getCostume(): stringGet the name of the current costume.
Delegates to Sprite.costume
getCostumeNumber
Section titled “getCostumeNumber”getCostumeNumber(): numberGet the current costume number.
Delegates to Sprite.costumeNumber
getCostumes
Section titled “getCostumes”getCostumes(): string[]Get the names of all costumes.
Delegates to Sprite.costumes
getSize
Section titled “getSize”getSize(): numberGet this sprite’s current size percentage.
Delegates to Sprite.size
getVisible
Section titled “getVisible”getVisible(): booleanGet whether this sprite is currently visible.
Delegates to Sprite.visible
hide(): voidHide this sprite.
Delegates to Sprite.visible
nextCostume
Section titled “nextCostume”nextCostume(): voidSwitch to the next costume.
Delegates to Sprite.costumeNumber
prevCostume
Section titled “prevCostume”prevCostume(): voidSwitch to the previous costume.
Delegates to Sprite.costumeNumber
say(message: string): voidShow a speech bubble with the given message.
Delegates to Sprite.say
Used by
sayAndWait
Section titled “sayAndWait”sayAndWait(message: string, seconds: number): voidShow a speech bubble for a number of seconds, then continue.
Pauses the script (a generator). In sprite code the free-function wrapper awaits it for you.
Delegates to Sprite.sayAndWait
setCostume
Section titled “setCostume”setCostume(costume: string | number): voidSwitch to a costume by name or number.
Delegates to Sprite.costume
setCostumeNumber
Section titled “setCostumeNumber”setCostumeNumber(number: number): voidSet the current costume number.
Delegates to Sprite.costumeNumber
setEffect
Section titled “setEffect”setEffect(effect: string, value: number): voidSet a graphic effect to a value.
Delegates to Sprite.effects
setSize
Section titled “setSize”setSize(percent: number): voidSet this sprite’s size as a percentage.
Delegates to Sprite.size
show(): voidMake this sprite visible.
Delegates to Sprite.visible
think(message: string): voidShow a thought bubble with the given message.
Delegates to Sprite.think
thinkAndWait
Section titled “thinkAndWait”thinkAndWait(message: string, seconds: number): voidShow a thought bubble for a number of seconds, then continue.
Pauses the script (a generator). In sprite code the free-function wrapper awaits it for you.
Delegates to Sprite.thinkAndWait