tile_get_blend(index);
Argument | Description |
---|---|
index | The index of the tile to check. |
Returns: Real
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).
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).