TiledMap get all TileSet

Hi is there a way to get all the tile set of the cc.TiledMap?

i need it to parse the object layer with tiles type of image… thanks

Hi eydamson

I think this can be useful to you:

    auto map     = cocos2d::TMXTiledMap::create("aMap.tmx");
    auto layer   = map->getLayer("The Layer Name");
    TMXTilesetInfo* tileset = layer->getTileSet();

This is C++ code, I imagine similar steps in Javascript

Bye

@drakon99 thanks… it will work for tile layers…
but what i want is the tile set for object layers… cuz i will parse that data and and get all the tile images from that object layer…

Sorry, I have no experiences with object layers! :relieved:

Bye