Phaser API Documentation

  Version: 
intersects(x, y, right, bottom)

Description:

Check for intersection with this tile. This does not factor in camera scroll, layer scale or layer position.

Parameters:

name type description
x number

The x axis in pixels.

y number

The y axis in pixels.

right number

The right point.

bottom number

The bottom point.

Returns:
Description:

true if the Tile intersects with the given dimensions, otherwise false.

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