Revision as of 03:20, 17 February 2018 by VoxBot (talk | contribs) (template removal and cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Next Backdrop
2.0 Next Backdrop.png
Category Looks
Type Stack
Introduced in 2.0

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.

The equivalent for a sprite is the Next Costume block, though sprites do not have an event hat block for changing costumes.

History

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".

Example Uses

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

Workaround

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.

Removal

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.[citation needed]

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.

See Also