tile_get_blend

Returns the blending colour of a given tile.

Syntax:

tile_get_blend(index);


Argument Description
index The index of the tile to check.


Returns: Real


Description

With this function you can get the blend colour that is currently being used for the specified tile. The default value is -1 (c_white).


Example:

var tile;
tile = tile_layer_find(-1000, mouse_x, mouse_y);
if tile_get_blend(tile) != -1
   {
   tile_set_blend(tile, c_white);
   }

The above code will first get the index of a tile at the mouse position with a depth of -1000 and then use that value to check whether the tile is blended or not, and if it is it sets the blend colour to white (default).


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