Table of Contents

Sprite:hitTestPoint

Available since version: Gideros 2011.6

Description:

Checks whether the given coordinates (in global coordinate system) is in bounds of the sprite.

Syntax:

(bool) = Sprite:hitTestPoint(x, y [, shapeFlag])

Parameters:

  • x: (number)
  • y: (number)
  • shapeFlag: (bool) Take clipping/masking into consideration when testing hit point

Return value:

  • bool: `true` if the given global coordinates are in bounds of the sprite, `false` otherwise.