Phaser API Documentation

  Version: 
containsPoint(x, y)

Description:

Check if the given x and y world coordinates are within this Tile. This does not factor in camera scroll, layer scale or layer position.

Parameters:

name type description
x number

The x coordinate to test.

y number

The y coordinate to test.

Returns:
Description:

True if the coordinates are within this Tile, otherwise false.

Type:
  • boolean
Since: 3.0.0
Source: src/tilemaps/Tile.js (Line 314)