Tilemap#removeTile()

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)
doc_phaser
2017-02-14 11:15:29
Comments
Leave a Comment

Please login to continue.