Scratch for Java

Sprite::hide()

Hide the sprite.

Examples

import org.openpatch.scratch.*;
 
public class SpriteHide {
  public SpriteHide() {
    Stage myStage = new Stage(600, 240);
    Sprite mySprite = new Sprite("zeta", "assets/zeta_green_badge.png");
    myStage.add(mySprite);
    myStage.wait(2000);
    mySprite.hide();
    myStage.wait(2000);
    myStage.exit();
  }
 
  public static void main(String[] args) {
    new SpriteHide();
  }
}
 

View on GitHub

Syntax

Java

.hide()

Scratch

hide

Return

void

hide()