tile_layer_delete(depth);
Argument | Description |
---|---|
depth | The depth of tiles which is to be deleted. |
Returns: N/A
With this function you can remove a whole tile layer from the
current room. 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).
if keyboard_check_pressed(ord("D"))
{
tile_layer_delete(-1000);
}
The above code will delete the tile layer with depth -1000 when the player pressed the "D" key on the keyboard.