Sprite::goToFrontLayer() Examples Syntax Java Scratch Return Sprite::goToFrontLayer() Puts the sprite in the front. Examples import org.openpatch.scratch.*; public class SpriteGoToFrontLayer { public SpriteGoToFrontLayer() { Stage myStage = new Stage(600, 240); Sprite gamma = new Sprite("gamma", "assets/gamma_purple_badge.png"); myStage.add(gamma); myStage.add(new Sprite("zeta", "assets/zeta_green_badge.png")); myStage.add(new Sprite("zeta", "assets/zeta_green_badge.png")); myStage.add(new Sprite("zeta", "assets/zeta_green_badge.png")); myStage.add(new Sprite("zeta", "assets/zeta_green_badge.png")); myStage.add(new Sprite("zeta", "assets/zeta_green_badge.png")); myStage.wait(1000); gamma.goToFrontLayer(); myStage.wait(1000); myStage.exit(); } public static void main(String[] args) { new SpriteGoToFrontLayer(); } } View on GitHub Syntax Java .goToFrontLayer() Scratch go to [back v] layer Return void goToFrontLayer()