GetTileHeight
From Spheriki
Get the height of tiles on the currently loaded map.
Contents |
Usage
- number is returned, which is the height of tiles on the map loaded in the map engine.
Examples
var tile_height = GetTileHeight();
This only works if the map engine is running, which means it belongs in a function that's called by a script command in the map engine, or in a section of code the map engine itself goes over.
Notes
- For this function to work, the map engine needs to be running.
- Since all tiles on a map are the same height, this function will return a number that represents the height of all tiles.
- For the width of tiles on the map, use GetTileWidth().