room_tile_clear

Clears all tiles from a given room.

Syntax:

room_tile_clear(ind);


Argument Description
ind The index of the room to clear all tiles from.


Returns: N/A


Description

With this function you can remove all the tiles from a room.


Example:

global.rm = room_add();
room_assign(rm_Base, global.rm);
room_tile_clear(global.rm);

The above code will add a new room to the game and then copy the contents of the room indexed as "rm_Base" into it. It will then clear all tiles from this new room.


Back: Rooms
Next: room_set_background
© Copyright YoYo Games Ltd. 2018 All Rights Reserved