getCameraPanRange() Function Reference

getCameraPanRange()

Returns the current boundary area that the camera is allowed to be panned within, or false if no area has been defined.


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

	-- Enable camera panning when the screen is dragged
	qiso.enableCameraPan()

	-- Restrict camera panning
	qiso.setCameraPanRange(10, 10, 40, 40)

	local cameraRange = qiso.getCameraPanRange()
	print("Norhern boundary tile: " .. cameraRange.x1 .. "," .. cameraRange.y1)

	-- Enable the main Qiso loop to render/update our world
	qiso.activate()