tile_layer_delete_at(depth, x, y);
Argument | Description |
---|---|
depth | The depth of a tile to be deleted. |
x | The x position at which to delete a tile. |
y | The y position at which to delete a tile. |
Returns: Real
With this function you can delete only those tiles that overlap
with the given point and that are on the specified depth. This is
not permanent and if the player leaves the room and returns to it
again, the tile layer will be recreated (unless the room is
persistent).
var i;
i = 1000;
repeat(3)
{
tile_layer_delete_at(i, mouse_x, mouse_y);
i -= 1000;
}
The above code will loop through three different tile depths and delete any tiles that are found at the mouse x/y position.