Next Costume
Next Costume
Category Looks
Type Stack
The Next Costume block is a Looks Block and a Stack Block. The block changes its sprite's costume to the next in the list of costumes - but if the current costume is the last in the list, the block will loop to the first.

Behind the ScenesEdit

Along with the Switch to Costume () block, it is one of the most commonly used Looks blocks. However, this block is technically unneeded due to the fact that Scratchers can simply use the following code:

Switch Costume (Next Costume)

To get the effect of the nonexistent Previous Costume block, the addition of cloth can be changed to subtraction.

Common UsesEdit

This block is mainly used in animation scripts, in which a sprite will progress through its costumes as with stop motion animation. The Wait () Secs block is often used along with it to improve the animation speed.

An example script is as follows:

Example animation script

This contains the costume change and the animation delay.

Community content is available under CC-BY-SA unless otherwise noted.