tile_layer_delete

Deletes all tiles at the indicated depth layer.

Syntax:

tile_layer_delete(depth);


Argument Description
depth The depth of tiles which is to be deleted.


Returns: N/A


Description

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


Example:

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.


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