removeTile(x, y, layer) → {Phaser.Tile}
Removes the tile located at the given coordinates and updates the collision data.
Parameters
| Name | Type | Argument | Description |
|---|---|---|---|
x | number | X position to place the tile (given in tile units, not pixels) | |
y | number | Y position to place the tile (given in tile units, not pixels) | |
layer | number | string | Phaser.TilemapLayer | <optional> | The layer to modify. |
Returns
The Tile object that was removed from this map.
- Source code: tilemap/Tilemap.js (Line 1262)
Please login to continue.