Scratch for Java

Stage::goLayersBackwards()

Moves the specified sprite backwards by a given number of layers in the sprite list. If the resulting position is less than zero, the sprite is moved to the first position. If the resulting position is greater than the last index, the sprite is moved to the last position.

Syntax

Java

.goLayersBackwards(sprite, number)

Parameters

Name Data Type Description
sprite Sprite the sprite to be moved backwards in the layer order
number int the number of layers to move the sprite backwards

Return

void

goLayersBackwards()