(Remove {{unreleased}})
m (fixed an error i made myself, whoops.)
 
(22 intermediate revisions by 14 users not shown)
Line 1: Line 1:
 
+
{{obsolete feature}}
 
{{block
 
{{block
 
| name      = Start Scene ()
 
| name      = Start Scene ()
| image      = File:Start scene.png
+
| image      = start scene ( v) :: events
 
| category  = [[Event Blocks|Events]]
 
| category  = [[Event Blocks|Events]]
 
| type      = [[Stack Block|Stack]]
 
| type      = [[Stack Block|Stack]]
| added      = 2.0
+
| added      = 2.0 Alpha
 +
| removed    = 2.0 Alpha
 +
| sb = 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. The broadcast block was available for all sprites, while its 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 to the broadcast block, the block could simply be replaced with the other. However, Switch to Scene () was only available for the stage so one had to have:
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>
<scratchblocks>start scene [level1 v] // in a start button
+
broadcast [switch to scene meadow v]
when scene [level1 v] starts //in a sprite
 
go to x:(0) y:(0)
 
 
</scratchblocks>
 
</scratchblocks>
*A game over message
+
On the stage:
<scratchblocks>start scene [game over v]
+
<scratchblocks>
when scene [game over v] starts
+
when I receive [switch to scene meadow v]
hide
+
switch backdrop to [meadow v]
 
</scratchblocks>
 
</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 ()]]
+
{{Events Blocks}}
{{Event Blocks}}
+
{{Removed Blocks}}
[[Category:Event Blocks]][[Category:Scratch 2.0]]
+
[[Category:Scratch 2.0]]

Latest revision as of 14:06, 24 March 2021

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 ( v) :: events
Category Events
Type Stack
Introduced in 2.0 Alpha
Removed in 2.0 Alpha

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. The broadcast block was available for all sprites, while its 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 to the broadcast block, the block could simply be replaced with the other. However, Switch to Scene () was only available for the stage so one had to have:

On the sprite:

broadcast [switch to scene meadow v]

On the stage:

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

See Also

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