This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. For information on the feature that replaced this one, see Backdrop () (block). |
- This article is about the block in Scratch 2.0. For the block in Scratch 3.0, see Backdrop () (block). For more information on the value this block reports, see Backdrop Name (value).
Backdrop name | |
backdrop name | |
Category | Looks |
Type | Reporter |
Introduced in | 2.0 |
Removed in | 3.0 |
The backdrop name block was a reporter block and a looks block. The block held the current backdrop name.
The block was replaced with the Backdrop () block in Scratch 3.0, which combined this block with the Backdrop # block.
The block was able to be displayed as a Stage Monitor.
History
Prior to Scratch 2.0, this block did not exist. Instead, the Backdrop Number block had to be used instead. Another alternative would be to list each costume name in a list. Both these blocks became available in Scratch 2.0 and can each be used to meet a specific project's needs. One notable difference was that the this block was available in both the stage and sprites, while the Backdrop Number is only in the stage. In Scratch 3.0, this block was merged with Backdrop # to create Backdrop ().
Example Uses
This block held the backdrop name of the stage and was used when something needed to happen if the stage was at a specific backdrop. Some of the more common uses were:
- Stopping the project once the stage reaches the backdrop for the end of the project
when green flag clicked wait until <(backdrop name) = [The End]> stop [all v]
- Checking what the current backdrop is
if <(backdrop name) = [Level 1 - Start]> then say [Welcome to the game! Use WASD to move.] for (4) secs end if <(backdrop name) = [Level 5 - Boss Fight]> then say [Watch out for the boss's laser attack!] for (4) secs end
- Setting a variable to the current backdrop
set [variable v] to (backdrop name)
Workaround
- Main article: List of Block Workarounds
This block can be replicated with the block that replaced it:
(backdrop [name v])
It can alternatively be replicated by finding the backdrop name through the () of () sensing block:
([backdrop name v] of (Stage v))
See Also
For sprites |
Say () for () Seconds • Say () • Think () for () Seconds • Think () • Switch Costume to () • Next Costume • Switch Backdrop to () • Next Backdrop • Change Size by () • Set Size to ()% • Change () Effect by () • Set () Effect to () • Clear Graphic Effects • Show • Hide • Go to () Layer • Go () () Layers • Costume () • Backdrop () • Size
|
For the Stage |