(Example Uses: separated scratch blocks)
(Changed to "brackdrop".)
Line 1: Line 1:
 
{{unreleased}}
 
{{unreleased}}
 
{{block
 
{{block
| name      = Switch to Scene ()
+
| name      = Switch to Backdrop ()
| image      = File:Switch to scene.png
+
| image      = File:2.0 Switch Backdrop to ().png
 
| category  = [[Looks Blocks|Looks]]
 
| category  = [[Looks Blocks|Looks]]
 
| type      = [[Stack Block|Stack]]
 
| type      = [[Stack Block|Stack]]
 
| added      = 2.0
 
| added      = 2.0
 
}}
 
}}
The '''Switch to Scene ()''' [[Blocks|block]] is a [[Looks Blocks|Looks block]] and a [[Stack Block|Stack block]]. It functions identically to the [[Start Scene () (block)|Start Scene ()]] block. This block is only available to the Stage, while the other is for all sprites. It is likely that this block is in Looks because [[Switch to Background ()]] was in Looks in the 1.x series, and so provides a natural place to look.
+
The '''Switch to Backdrop ()''' [[Blocks|block]] is a [[Looks Blocks|Looks block]] and a [[Stack Block|Stack block]].
  
 
Prior to [[Scratch 2.0]], this block was called Switch to Background () and didn't fire an event upon running.
 
Prior to [[Scratch 2.0]], this block was called Switch to Background () and didn't fire an event upon running.
 
==Workaround==
 
{{main|List of Block Workarounds}}
 
Due to the fact that the Start Scene () block works identically, this block can simply be replaced with the other.
 
<scratchblocks>start scene [scene1 v]</scratchblocks>
 
  
 
==Example Uses==
 
==Example Uses==
 
*Starting a level
 
*Starting a level
<scratchblocks>switch to scene [level1 v] // in the Stage</scratchblocks>
+
<scratchblocks>switch to backdrop [level1 v]</scratchblocks>
 
<scratchblocks>
 
<scratchblocks>
when scene [level1 v] starts //in a sprite
+
when backdrop [level1 v] starts //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 to scene [game over v]</scratchblocks>
+
<scratchblocks>switch to backdrop [game over v]</scratchblocks>
<scratchblocks>when scene [game over v] starts
+
<scratchblocks>when backdrop [game over v] starts
 
hide</scratchblocks>
 
hide</scratchblocks>
*Simply changing scenes
+
*Simply changing backdrops
<scratchblocks>switch to scene [scene2 v]</scratchblocks>
+
<scratchblocks>switch to backdrops [scene2 v]</scratchblocks>
  
 
==See Also==
 
==See Also==
*[[Scenes]]
+
*[[Backdrops]]
*[[Start Scene () (block)|Start Scene ()]]
+
*[[Switch to Backdrop () and Wait (block)|Switch to Backdrop () and Wait]]
*[[Start Scene () and Wait (block)|Start Scene () and Wait]]
+
*[[Next Backdrop (block)|Next Backdrop]]
*[[Next Scene (block)|Next Scene]]
 
 
{{Looks Blocks}}
 
{{Looks Blocks}}
 
[[Category:Looks Blocks]][[Category:Scratch 2.0]]
 
[[Category:Looks Blocks]][[Category:Scratch 2.0]]

Revision as of 10:03, 27 January 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 to Backdrop ()
2.0 Switch Backdrop to ().png
Category Looks
Type Stack
Introduced in 2.0

The Switch to Backdrop () 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 to backdrop [level1 v]
when backdrop [level1 v] starts //in a sprite
go to x:(0) y:(0)
  • A game over message
switch to backdrop [game over v]
when backdrop [game over v] starts
hide
  • Simply changing backdrops
switch to backdrops [scene2 v]

See Also