removeTileWorldXY(x, y, tileWidth, tileHeight, layer) → {Phaser.Tile}
Removes the tile located at the given coordinates and updates the collision data. The coordinates are given in pixel values.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
x | number | X position to insert the tile (given in pixels) | |
y | number | Y position to insert the tile (given in pixels) | |
tileWidth | number | The width of the tile in pixels. | |
tileHeight | number | The height of the tile in 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 1293)
Please login to continue.