Go to () Layer
go to [front v] layer
Category Looks
Type Stack
Introduced in 3.0

The Go to () Layer block is a Looks block and a stack block. The block makes a sprite go to the very backmost or frontmost layer. A sprite at the backmost layer will be covered by any sprites in front of it; a sprite at the frontmost layer cannot be covered by another sprite.


Before Scratch 3.0, there were only the Go to Front and Go Back () Layers blocks; no block existed to go to the back. Instead one could use the Go Back () Layers block with a great input.

Example Uses

The first dropdown input has two options: front and back. This block is useful in a wide variety of situations. Some common uses are:

  • Preparing for a race
when I receive [setup v]
go to x: (-50) y: (-100)
go to [front v] layer
. . .
  • A card game
when this sprite clicked
go to [front v] layer
. . .
repeat until <not <mouse down?>>
    go to [mouse-pointer v]
. . .

In some cases, a sprite needs to move forward or backward, but not to the very front or back. The go [ v] () layers block does that.

See Also