Sprite:hitTestPoint: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Checks whether the given coordinates (in global coordinate system) is in bounds of the sprite.<..." |
No edit summary |
||
| Line 7: | Line 7: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
(bool) | (bool) = Sprite:hitTestPoint(x,y,shapeFlag) | ||
</source> | </source> | ||
'''x | '''x''': (number) ''''''<br/> | ||
'''y | '''y''': (number) ''''''<br/> | ||
'''shapeFlag | '''shapeFlag''': (bool) Take clipping/masking into consideration when testing hit point '''optional'''<br/> | ||
'''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 09:19, 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)
'x: (number) '
'y: (number) '
shapeFlag: (bool) Take clipping/masking into consideration when testing hit point optional
Returns (bool) `true` if the given global coordinates are in bounds of the sprite, `false` otherwise.