[help!]positioning tile image object in isometric map

Hi made my own tmx parser and i am able to parse isometric map form tiled map editor…
now my issue is about the object layer with image object… i cant find the math on how to properly place them in the map… cocos2d’s coordinate system is different from tiled map’s isometric coordinate system.

take a look at this

In TileMap Editor


In Cocos2d

Can you guys please help me about the math of this? :weary:

@stevetranby help me sir :smile:

This should get you close.

map->getPositionAt(Vec2(0,0)); // position for tile 0,0 

http://discuss.cocos2d-x.org/t/tmxlayer-getpositionat-returns-wrong-values-for-isometric-map/21603