This article or section documents the current version of Scratch (version 3.0). For this article in Scratch 2.0, see Backdrop Number (block) and Backdrop Name (block).
Backdrop ()
backdrop [number v]
Category Looks
Type Reporter
Introduced in 3.0

The Backdrop () block is a Looks Block and a reporter block in Scratch 3.0. It returns the backdrop number or the backdrop's name. It was added in Scratch 3.0.

This block can be displayed as a Stage Monitor.

History

Main article: List of Obsolete Blocks#Backdrop ()

This block was in the Scratch 2.0 alpha version, but was removed in v175. However, it was brought back in Scratch 3.0, merging two other blocks.

Uses

This block is useful for choosing among several actions by the backdrop:

if <(backdrop [name v]) = [Arctic]> then
  say [Let's have warm tea] for (5) seconds
else
  if <(backdrop [name v]) = [Savanna]> then
    say [Let's have cold water] for (5) seconds
  end
end

The number option is useful for changing past multiple backdrops instantly:

switch backdrop to ((backdrop [number v]) + (10)) and wait

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.