Deletes all tiles at the indicated depth layer.



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"))

The above code will delete the tile layer with depth -1000 when the player pressed the "D" key on the keyboard.

Back: Background Tiles
Next: tile_layer_delete_at
© Copyright YoYo Games Ltd. 2018 All Rights Reserved