Hide List () | |
hide list [ v] | |
Category | List |
Type | Stack |
Introduced in | 2.0 |
The Hide List () block is a Lists block and a Stack block. The block hides the specified list's Stage Monitor. This block was added in Scratch 2.0.
The block was originally going to be Hide Monitor (), hiding both variables and lists, but this was changed in the 2.0 beta.
Example Uses
In projects that use lists' Stage Monitors to display things, the displays may have to hide and show at times; with the Show List () block, this can be done.
Some popular uses are:
- Hiding an inventory
when [z v] key pressed say [You slowly close your backpack.] for (2) secs hide list [Inventory v]
- Hiding output
when this sprite clicked ask [Are you sure that you do not want to see the results? (Y/N)] and wait if <(answer) = [Y]> then hide list [Results v] end say [Okay then!] for (2) secs
- Preparing a project
when gf clicked hide list [Inventory v] hide list [Stats v] hide list [To-do v] say [This morning you woke up to a nice steaming cup of coffee.] for (2) secs