show variable ()

From PenguinMod Wiki (Official)
Show variable ()
Jump to navigation Jump to search

The show variable () block is a stack block in the Variables subcategory that shows the monitor of the selected variable. It originates from Scratch.

It can be used alongside the hide variable () block to display and hide the variable. For example, the creator of a project may want variables relating to score to not show when the player is in the shop, or want a high score variable to only show on a game over screen:

when gf clicked
forever
if <(costume [name v]) = [shop]> then
hide variable [score v]
hide variable [score per second v]
hide variable [score per click v]
else
show variable [score v]
show variable [score per second v]
show variable [score per click v]
end
end

Or:

when I receive [game over v]
show variable [☁ high score v]

See also