I'm using Box2dMapObjectParser to load Tiled objects layer onto my IsometricTiledMapRenderer'ed TiledMap. It works OK with a UnitScale of 1 but the position is wrong and some shapes have weird rotation and size.

Map in Tiled: enter image description here

Map in game: enter image description here

I've found another similar question but the answer is unfortunately far from being clear, at least to me.

Relevant code:

mParser.load(mWorld, mMap);
mRenderer = new IsometricTiledMapRenderer(mMap, mParser.getUnitScale());

Notice the 'Ellipse' is not drawn at all, the Rectangle is way off and Polygons/Polylines are just not positioned right.

Did anyone experience the same issue and/or have any idea how to fix this?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.