I’m just getting started with MTE and have created a sample map in Tiled and have loaded it up like below
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- display.setStatusBar( display.HiddenStatusBar ) system.activate( "multitouch" ) local mte = require('mte').createMTE() --Load and instantiate MTE. mte.loadTileSet("Grass Block", "map/Grass Block.png") mte.loadTileSet("Water Block", "map/Water Block.png") mte.loadTileSet("Plain Block", "map/Plain Block.png") mte.loadTileSet("Dirt Block", "map/Dirt Block.png") mte.loadMap("map/new.tmx") mte.enableTouchScroll() mte.enablePinchZoom() if mte.getMap().layers then mte.setCamera({locX = 10, locY = 12, blockScaleX = 101, blockScaleY = 171}) end
The map is 50x50 tiles where each tile is 101 x 171.
I can see that this does get detected when the map loads as the console logs:
World Size X: 50
World Size Y: 50
Levels: 1
Reference Layer: 1
However when the map loads up i can only see roughly 16x16 tiles rather than 50x50.
I can use pinch to zoom but i cannot pan around, is there something I’m doing wrong?