Sprite::getY() Examples Syntax Java Scratch Return Sprite::getY() Gets the y position of the sprite. Examples import org.openpatch.scratch.*; public class SpriteGetY { public SpriteGetY() { Stage myStage = new Stage(600, 240); Sprite mySprite = new Sprite("zeta", "assets/zeta_green_badge.png"); myStage.add(mySprite); mySprite.changeX(-80); mySprite.changeY(30); mySprite.say("Y: " + mySprite.getY()); myStage.wait(3000); myStage.exit(); } public static void main(String[] args) { new SpriteGetY(); } } View on GitHub Syntax Java .getY() Scratch (y position) Return float getY()