isometricToTile() Function Reference

isometricToTile(decimal x, decimal y)

Converts an isometric co-ordinate into a tile co-ordinate.


	local qiso = require "plugin.qisoengine"
	qiso.setAssetsFolder("assets")
	qiso.loadTiledMap("sample-tilemap")

	-- Get the isometric of a tile
	local isoPlot = tileToIsometric(2, 1)

	-- Convert it back again
	print("Tile co-ordinate: " .. qiso.isometricToTile(isoPlot.x, isoPlot.y))