Difference between revisions of "Sprite:isVisible"

From GiderosMobile
(removed language stuff)
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
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>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 14:33, 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.

(bool) = Sprite:isVisible([checkParent])

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