Difference between revisions of "Sprite:hitTestPoint"
From GiderosMobile
Line 9: | Line 9: | ||
(bool) = Sprite:hitTestPoint(x,y,shapeFlag) | (bool) = Sprite:hitTestPoint(x,y,shapeFlag) | ||
</source> | </source> | ||
− | '''x''': (number) | + | === Parameters === |
− | '''y''': (number) | + | '''x''': (number) <br/> |
+ | '''y''': (number) <br/> | ||
'''shapeFlag''': (bool) Take clipping/masking into consideration when testing hit point '''optional'''<br/> | '''shapeFlag''': (bool) Take clipping/masking into consideration when testing hit point '''optional'''<br/> | ||
+ | === Return values === | ||
'''Returns''' (bool) `true` if the given global coordinates are in bounds of the sprite, `false` otherwise.<br/> | '''Returns''' (bool) `true` if the given global coordinates are in bounds of the sprite, `false` otherwise.<br/> |
Revision as of 10:45, 23 August 2018
Available since: Gideros 2011.6
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.