How to save tmx file using CCTMXTiledMap

CCTMXTiledMap *map = [CCTMXTiledMap tiledMapWithTMXFile:@"mapTmx.tmx"];
CCTMXLayer *layer = [map layerNamed:@"Layer 0"];
[layer setTileGID:10  at:ccp( 0, 0 )];

How can I save the map "CCTMXTiledMap *" to the file "mapTmx.tmx"?

+3
source share
1 answer

This function does not exist by default. You can export tmx via Tiled to one of the text formats and combine your own exporter. Not the answer you wanted, but this is the beginning.

0
source

Source: https://habr.com/ru/post/1796248/


All Articles