Hello Guest

Author Topic: General question probably not 2dtk related...lol?  (Read 3382 times)

flexation

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
General question probably not 2dtk related...lol?
« 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: General question probably not 2dtk related...lol?
« Reply #1 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.