tile_get_y

Returns the y coordinate of a given tile.

Syntax:

tile_get_y(index);


Argument Description
index The index of the tile to check.


Returns: Real


Description



This function will return the y axis position within the current room of the given tile.


Example:

var tile;
tile = tile_layer_find(-1000, mouse_x, mouse_y);
yy = tile_get_y(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 y axis position within the variable "yy".


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