Hide: Difference between revisions

From StarLogo Nova Wiki
(updates from Blockument)
(Marked this version for translation)
 
Line 21: Line 21:
#Select the desired widget from the drop down menu
#Select the desired widget from the drop down menu


==Example==
==Example== <!--T:8-->


<!--T:9-->
[[File:hide_example.gif|alt=Hide example gif|thumb]]
[[File:hide_example.gif|alt=Hide example gif|thumb]]
[[File:hide_example.png|alt=Hide example code|thumb]]
[[File:hide_example.png|alt=Hide example code|thumb]]


<!--T:10-->
The game above involves shooting down enemy spaceships, while trying to avoid crashing into them. After you crash into an enemy spaceship, everyone is deleted and the ‘GAME OVER’ label is shown using the ‘show’ block. This label is hidden in the setup of the game using the ‘hide’ block so that it is invisible until the game is over.   
The game above involves shooting down enemy spaceships, while trying to avoid crashing into them. After you crash into an enemy spaceship, everyone is deleted and the ‘GAME OVER’ label is shown using the ‘show’ block. This label is hidden in the setup of the game using the ‘hide’ block so that it is invisible until the game is over.   



Latest revision as of 19:27, 11 August 2023

Other languages:


hide

Hides a selected widget. Once hidden, you need to use “show _” to make it visible again.

hide [▼] is a code block from the Interface drawer.

Usage

hide [▼] hides a selected widget. Once hidden, you need to use “show” to make it visible again.

Syntax

The Hide Block

Inputs:

  1. Select the desired widget from the drop down menu

Example

Hide example gif
Hide example code

The game above involves shooting down enemy spaceships, while trying to avoid crashing into them. After you crash into an enemy spaceship, everyone is deleted and the ‘GAME OVER’ label is shown using the ‘show’ block. This label is hidden in the setup of the game using the ‘hide’ block so that it is invisible until the game is over.

Nuances

Related Blocks