Difference between revisions of "Sprite:hitTestPoint"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> |
Revision as of 09:58, 3 September 2018
Available since: Gideros 2011.6
Class: Sprite
Description
Checks whether the given coordinates (in global coordinate system) is in bounds of the sprite.
(bool) = Sprite:hitTestPoint(x,y,shapeFlag)
Parameters
x: (number)
y: (number)
shapeFlag: (bool) Take clipping/masking into consideration when testing hit point optional
Return values
Returns (bool) true if the given global coordinates are in bounds of the sprite, false otherwise.