m (1 revision: More fixing...)
m (Fixed the image, ( and ) are removed from the filenames...)
Line 18: Line 18:
 
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:
 
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:
  
<br />[[File:Switch_Costume_(Next_Costume).png]]
+
<br />[[File:Switch_Costume_Next_Costume.png]]
  
 
<br />with the ''Switch To Costume ()'' block to replicate the effect of the ''Next Costume'' block.
 
<br />with the ''Switch To Costume ()'' block to replicate the effect of the ''Next Costume'' block.

Revision as of 14:47, 15 May 2010

Next Costume (block)
Next Costume.png
Category Looks Block
Type Stack Block

The Next Costume block is a Looks Block and a Stack Block. The sprite that contains the block will change its costume to the next in the list - but if the current costume is the last listed, it will loop to the first.

Common Uses

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

An example script is as follows:

File:Example animation script.png

This contains the costume change and the animation delay.

Alternatives

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:


File:Switch Costume Next Costume.png


with the Switch To Costume () block to replicate the effect of the Next Costume block.
However, many Scratchers tend to use it for its simplicity.