tile_get_height

Returns the height of a given tile.

Syntax:

tile_get_height(index);


Argument Description
index The index of the tile to check.


Returns: Real


Description

With this function you can get the height (in pixels) of the specified tile.


Example:

var tile;
tile = tile_layer_find(-1000, mouse_x, mouse_y);
hh = tile_get_height(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 height of the asset in the variable "hh".


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