The Next Backdrop block is a Looks block and a Stack block. The block changes the backdrop to the next in the list of backdrops, but if the current backdrop is the last in the list, the block will loop to the first.
Prior to Scratch 2.0, this block was called Next Background and did not fire an event upon running. During 2.0 development, this block was also called "Next Scene".
This block is mainly used in animation scripts, in which the Stage will progress through its backdrops as with stop motion animation. The Wait () Secs block is often used along with it to improve the animation speed.
Alternatively, it can be used for slideshow-style projects as shown below:
When [space v] key pressed next backdrop
- Main article: List of Block Workarounds
This block may simply be replicated with the following code:
switch backdrop to (next backdrop v)
Also, because this block simply advances the backdrop number, the following code can do this:
switch backdrop to ((backdrop #) + (1))
To get the effect of the nonexistent Previous Backdrop block, the addition can be changed to subtraction.
Many users have made suggestions about removing this block, insisting that its alternative is perfectly fine to use; however, others have disagreed, saying that it saves lots of time and is handy for animation.
The Scratch Team has made no comment on the matter, but is likely to keep the block for its handiness; it has been in Scratch since Scratch 1.0.
- Backdrop Name
- Backdrop #
- Next Costume
- Switch Backdrop to ()
- Switch Backdrop to () and Wait
- When Backdrop Switches to ()
Say () for () Secs • Say () • Think () for () Secs • 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 Number • Size
|For the Stage|