2D Toolkit Forum

2D Toolkit => Support => Topic started by: flexation on August 17, 2013, 04:27:48 pm

Title: General question probably not 2dtk related...lol?
Post by: flexation on August 17, 2013, 04:27:48 pm
Wondering if anyone has a nice way to load tiles from a mapfile?  So users can create their own maps with tiled...  and load those dynamically within unity game...  so as users connect to game, they would download the mapfile and then load the tiles?
Title: Re: General question probably not 2dtk related...lol?
Post by: unikronsoftware on August 17, 2013, 06:23:12 pm
There is sample code to load tilemaps from TMX files. This isn't enabled at runtime as it depends on the XML libraries (adds a significant overhead) and an external ZLib library. The code is in tk2dTileMapImporter and its pretty straightforward if you want to port it to work at runtime.