Layers functions
Free functions you can call directly in sprite code.
goBackwardLayers
Section titled “goBackwardLayers”goBackwardLayers(layers: number): voidMove this sprite backward a number of layers (Scratch-style).
Delegates to Sprite.moveBehind
goForwardLayers
Section titled “goForwardLayers”goForwardLayers(layers: number): voidMove this sprite forward a number of layers (Scratch-style).
Delegates to Sprite.moveAhead
goToBack
Section titled “goToBack”goToBack(): voidMove this sprite to the back layer (Scratch-style alias).
Delegates to Sprite.moveBehind
goToFront
Section titled “goToFront”goToFront(): voidMove this sprite to the front layer (Scratch-style alias).
Delegates to Sprite.moveAhead
moveAhead
Section titled “moveAhead”moveAhead(value?: number): voidMove this sprite ahead by a number of layers.
Delegates to Sprite.moveAhead
moveBackward
Section titled “moveBackward”moveBackward(layers?: number): voidMove this sprite backward a number of layers.
Delegates to Sprite.moveBehind
moveBehind
Section titled “moveBehind”moveBehind(value?: number): voidMove this sprite behind by a number of layers.
Delegates to Sprite.moveBehind
moveForward
Section titled “moveForward”moveForward(layers?: number): voidMove this sprite forward a number of layers.
Delegates to Sprite.moveAhead
moveToBack
Section titled “moveToBack”moveToBack(): voidMove this sprite to the back layer.
Delegates to Sprite.moveBehind
moveToFront
Section titled “moveToFront”moveToFront(): voidMove this sprite to the front layer.
Delegates to Sprite.moveAhead