m
m
Line 15: Line 15:
 
<scratchblocks>switch backdrop to [level1 v]</scratchblocks>
 
<scratchblocks>switch backdrop to [level1 v]</scratchblocks>
 
<scratchblocks>
 
<scratchblocks>
when backdrop [level1 v] starts //in a sprite
+
when backdrop switches to [level1 v] //in a sprite
 
go to x:(0) y:(0)
 
go to x:(0) y:(0)
 
</scratchblocks>
 
</scratchblocks>
 
*A game over message
 
*A game over message
 
<scratchblocks>switch backdrop to [game over v]</scratchblocks>
 
<scratchblocks>switch backdrop to [game over v]</scratchblocks>
<scratchblocks>when backdrop [game over v] starts
+
<scratchblocks>when backdrop switches to [game over v]
 
hide</scratchblocks>
 
hide</scratchblocks>
 
*Simply changing backdrops
 
*Simply changing backdrops

Revision as of 19:35, 27 February 2013

Clock.png This article or section contains information about a feature from a future version of Scratch that is unreleased and is subject to change. Please cite any additional info in order to prevent speculation.
Switch Backdrop to ()
2.0 Switch Backdrop to ().png
Category Looks
Type Stack
Introduced in 2.0

The Switch Backdrop to () block is a Looks block and a Stack block.

Prior to Scratch 2.0, this block was called Switch to Background () and didn't fire an event upon running.

Example Uses

  • Starting a level
switch backdrop to [level1 v]
when backdrop switches to [level1 v] //in a sprite
go to x:(0) y:(0)
  • A game over message
switch backdrop to [game over v]
when backdrop switches to [game over v]
hide
  • Simply changing backdrops
switch backdrop to [scene2 v]

See Also