visible?

From PenguinMod Wiki (Official)
Revision as of 03:15, 9 September 2024 by Steve0Greatness (talk | contribs) (→‎Workaround: Shouldn't be a redirect link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Visible?
Jump to navigation Jump to search

The visible block is a looks boolean block that detects if the sprite is shown or hidden.

Workaround

This block can be worked around by using the is () visible? from another sprite, or with "this sprite" selected.

is [this sprite v] visible?::boolean looks

Alternatively, variables can be used whenever a sprite is hidden or visible. If there are multiple spots where the sprite is hidden/visible, then a custom block can be used for this.

define hide
hide
set [visible? v] to [true]

define show
show
set [visible? v] to [false]

<(visible?) = (true)>