tile_get_xscale(index);
Argument | Description |
---|---|
index | The index of the tile to check. |
Returns: Real
Tiles, like instances, can be scaled once created, and this
function will return the scaling amount along the horizontal axis
(where 1 is the default value).
var tile;
tile = tile_layer_find(-1000, mouse_x, mouse_y);
xs = tile_get_xscale(tile);
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 store its horizontal scale within the variable "xs".