Show or Hide a Sprite
-
Prerequisite
Description
The “Show” and “Hide” blocks are Stack blocks in the Looks category.
“Show” Block
If a sprite is hidden, the “Show” block is used to show it on stage.
Note: If the sprite is already showing, then nothing will change when you run the show block.
“Hide” Block
The “Hide” block is used to hide the current sprite from stage (making it invisible).
Note: If the sprite is already hidden, then nothing will happen when you run the hide block.
Show and Hide Radio Buttons
You can also show or hide a sprite by clicking on these Radio buttons in the Sprite pane. These buttons also toggle when you hide or show a sprite using the blocks.