tile_get_count

Returns the total number of tiles in a room.

Syntax:

tile_get_count();


Returns: Real


Description

With this function you can get the total number of tiles, from all layers, in a room.


Example:

var num = tile_get_count();
for (var i = 0; i < num; i++;)
   {
   tile_set_blend(tile_get_id(i), c_red);
   }

The above code will get the total number of tiles in a room, then loop through them one at a time and set their blend colour to red.


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