tile_get_x(index);
Argument | Description |
---|---|
index | The index of the tile to check. |
Returns: Real
This function will return the x axis position within the
current room of the given tile.
var tile;
tile = tile_layer_find(-1000, mouse_x, mouse_y);
xx = tile_get_x(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 x axis position within the variable "xx".