Sprite::getCurrentCostumeIndex() Examples Syntax Java Scratch Return Sprite::getCurrentCostumeIndex() Get the index of the current costume. Examples import org.openpatch.scratch.*; public class SpriteGetCurrentCostumeIndex { public SpriteGetCurrentCostumeIndex() { Stage myStage = new Stage(600, 240); Sprite mySprite = new Sprite("zeta", "assets/zeta_green_badge.png"); mySprite.addCostume("gamma", "assets/gamma_purple_badge.png"); mySprite.changeY(20); myStage.add(mySprite); mySprite.think("Index: " + mySprite.getCurrentCostumeIndex()); myStage.wait(2000); mySprite.nextCostume(); mySprite.think("Index: " + mySprite.getCurrentCostumeIndex()); myStage.wait(2000); myStage.exit(); } public static void main(String[] args) { new SpriteGetCurrentCostumeIndex(); } } View on GitHub Syntax Java .getCurrentCostumeIndex() Scratch costume [number v] Return int getCurrentCostumeIndex()