(Remove {{unreleased}})
(Made it clear that this is obsolete.)
Line 1: Line 1:
 
+
{{obsolete feature}}
 
{{block
 
{{block
 
| name      = Start Scene ()
 
| name      = Start Scene ()
Line 7: Line 7:
 
| added      = 2.0
 
| added      = 2.0
 
}}
 
}}
The '''Start Scene ()''' [[Blocks|block]] is an [[Event Blocks|Event block]] and a [[Stack Block|Stack block]]. It functions identically to the [[Switch to Scene () (block)|Switch to Scene ()]] block, but the latter block is only available to the Stage, while this is for all sprites. This block is also similar to [[Broadcast ()]], because they both fire a user-driven event to start an action.
+
The '''Start Scene ()''' [[Blocks|block]] was an [[Event Blocks|Event block]] and a [[Stack Block|Stack block]]. This block was similar to [[Broadcast ()]], because they both fired a user-driven event to start an action. This block was available for all sprites rather than it's alternative, Switch to Scene () which was only available for the stage. They have both been replaced by {{b|Switch Backdrop to ()}} which is available for all sprites and the stage.
  
 
==Workaround==
 
==Workaround==
{{main|List of Block Workarounds}}
+
Due to the fact that the Switch to Scene () block worked identically, the block could simply be replaced with the other. However, Switch to Scene () was only available for the stage so one would of had to have done:
Due to the fact that the Switch to Scene () block works identically, this block can simply be replaced with the other.
 
<scratchblocks>switch to scene [scene1 v]</scratchblocks>
 
  
==Example Uses==
+
On the sprite:
*Starting a level
+
<scratchblocks>broadcast [switch to scene meadow v]</scratchblocks>
<scratchblocks>start scene [level1 v] // in a start button
+
On the stage:
when scene [level1 v] starts //in a sprite
+
<scratchblocks>when I receive [switch to scene meadow v]
go to x:(0) y:(0)
+
switch to scene [meadow v]</scratchblocks>
</scratchblocks>
 
*A game over message
 
<scratchblocks>start scene [game over v]
 
when scene [game over v] starts
 
hide
 
</scratchblocks>
 
*Simply changing scenes
 
<scratchblocks>start scene [scene2 v]</scratchblocks>
 
  
 
==See Also==
 
==See Also==
*[[Scenes]]
+
*[[Backdrops]]
*[[Start Scene () and Wait (block)|Start Scene () and Wait]]
+
*{{b|Switch Backdrop to ()}}
*[[Switch to Scene () (block)|Switch to Scene ()]]
 
{{Event Blocks}}
 
 
[[Category:Event Blocks]][[Category:Scratch 2.0]]
 
[[Category:Event Blocks]][[Category:Scratch 2.0]]

Revision as of 17:15, 13 September 2013

Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
Start Scene ()
Start scene.png
Category Events
Type Stack
Introduced in 2.0

The Start Scene () block was an Event block and a Stack block. This block was similar to Broadcast (), because they both fired a user-driven event to start an action. This block was available for all sprites rather than it's alternative, Switch to Scene () which was only available for the stage. They have both been replaced by Switch Backdrop to () which is available for all sprites and the stage.

Workaround

Due to the fact that the Switch to Scene () block worked identically, the block could simply be replaced with the other. However, Switch to Scene () was only available for the stage so one would of had to have done:

On the sprite:

broadcast [switch to scene meadow v]

On the stage:

when I receive [switch to scene meadow v]
switch to scene [meadow v]

See Also

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