Hello,
I was playing around with the tmxTileMap class, and was trying to get two separate tile maps at different times. I was trying to remove one, then create the other.
I already made my TMXTileMap class with a tileMap = [[TMXTiledMap alloc] initWithTMXFile:tileMapName];
But the problem is, when I remove that with a [tilemap release] There is still some info that gets left behind.
To be specific its the:
TMXMapInfo *mapInfo = [TMXMapInfo formatWithTMXFile:tmxFile];
Line that giving me problems.
NSAssert( [mapInfo->tilesets count] == 1, @"TMXTiledMap: only supports 1 tileset");
Stops it.
I have no idea how to remove the remaining references in the TMXTiledMap. With out messing with the cocos code, which I don't want to do.
Any Ideas?
My testing is on simulator 3.0 and 3.1. Using Cocos2d 8.1