Hello Guest

Author Topic: Loading a different tilemap at runtime from .tmx?  (Read 3669 times)

JBabz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 42
  • @joe_babz
    • View Profile
    • Zombit on Facebook
Loading a different tilemap at runtime from .tmx?
« on: October 06, 2013, 05:14:04 am »
Hi. I'll keep it short.

tk2dTilemap question:
Say I have..20 .TMX files. I want to load one of them when I open a scene.
So, one scene, multiple TMX files.
IS there a way to load a TMX file at runtime?

If so, do explain :)

Thank you.

-Joe

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Loading a different tilemap at runtime from .tmx?
« Reply #1 on: October 06, 2013, 05:40:47 pm »
There isn't a way to load tmx files at runtime out of the box. The code is available to load it in the editor (tk2dTileMapImporter), and it won't be too different doing it at runtime. The reason it can't be included as part of the package is that it uses zlib & xml both of which add a largeish overhead to your runtime code size.