Difference between revisions of "Sprite:isVisible"

From GiderosMobile
(removed language stuff)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns whether or not the sprite is visible. Child sprites that are not visible are also taken into consideration while calculating bounds.
 
Returns whether or not the sprite is visible. Child sprites that are not visible are also taken into consideration while calculating bounds.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(bool) = Sprite:isVisible([checkParent])
 
(bool) = Sprite:isVisible([checkParent])
 
</source>
 
</source>

Revision as of 14:31, 13 July 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Returns whether or not the sprite is visible. Child sprites that are not visible are also taken into consideration while calculating bounds. <syntaxhighlight lang="lua"> (bool) = Sprite:isVisible([checkParent]) </source>

Parameters

checkParent: (bool) flag to check parent visibility (optional: default = false)

Return values

Returns (bool) a value of true if sprite is visible, false otherwise