Sprite::nextCostume() Examples Syntax Java Scratch Return Sprite::nextCostume() Changes the sprite's costume to the next one in the costume list. Examples import org.openpatch.scratch.*; public class SpriteNextCostume { public SpriteNextCostume() { Stage myStage = new Stage(600, 240); Sprite zeta = new Sprite("green", "assets/zeta_green_badge.png"); zeta.addCostume("yellow", "assets/zeta_yellow_badge.png"); myStage.add(zeta); myStage.wait(2000); zeta.nextCostume(); myStage.wait(2000); zeta.nextCostume(); myStage.wait(2000); myStage.exit(); } public static void main(String[] args) { new SpriteNextCostume(); } } View on GitHub Syntax Java .nextCostume() Scratch next costume Return void nextCostume()