The Backdrop Name is a local value which is set to the name of the current backdrop of the stage. All backdrops have both a name, and a number identifying their position in the backdrops pane in the Paint Editor.

There is a block that reports this value, so it can be stored in a variable:

when gf clicked
forever
set [variable v] to (backdrop [name v])
end

Related Blocks

The following blocks can be used in conjunction with this value:

Example Uses

This value can be used in a number of ways:

  • Reporting what backdrop is displaying on the stage
when green flag clicked
say (join (backdrop [name v]) [world]) for (2) secs
  • Doing an action for a specific backdrop
when green flag clicked
if <(backdrop [name v]) = [dungeon]> then
play sound (dungeon music v) until done
end

See Also

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