1

I use Tiled to create tiled map.

I create tmx file but I don't know how I can use this file to create a tiled map in javafx.

I search and find I have to convert tmx file to XML file.

But I don't know how I use from the XML file.

please help me to create a tiled map from XML file.

Sebastian
  • 5,721
  • 3
  • 43
  • 69
ali
  • 15
  • 3

1 Answers1

0

I'm not sure what exactly you want to achieve in JavaFX but there is a thread in the tiled forum that seems to address your question:

http://discourse.mapeditor.org/t/loading-tmx-map-and-displaying-with-javafx/1189

Btw tmx files actually are XML files. TMX is short for Tile Map XML.

Sebastian
  • 5,721
  • 3
  • 43
  • 69
  • please present for me the required library. – ali Jul 05 '17 at 10:52
  • 1
    He's using libtiled-java, which is since recently available in the Maven central repository: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.mapeditor%22 It is still undergoing heavy work though, to make it up-to-date (see https://github.com/bjorn/tiled/pull/1637) – Thorbjørn Lindeijer Jul 05 '17 at 11:38