Checks if there is a tile at the given location (in tile coordinates) in the given layer. Returns false if there is no tile or if the tile at that location has an index of -1.
name | type | description |
---|---|---|
tileX | number |
X position to get the tile from (given in tile units, not pixels). |
tileY | number |
Y position to get the tile from (given in tile units, not pixels). |
layer | Phaser.Tilemaps.LayerData |
The Tilemap Layer to act upon. |
Returns a boolean, or null if the layer given was invalid.