tile_get_width(index);
Argument | Description |
---|---|
index | The index of the tile to check. |
Returns: Real
With this function you can get the width (in pixels) of the
specified tile.
var tile;
tile = tile_layer_find(-1000, mouse_x, mouse_y);
ww = tile_get_width(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 the width of the asset in the variable "ww".