Tmx to json converter online?


(Avi Pheimei) #1

I wanted to ask, if I use an online tmx to json converter will it work?

I know it’s off topic but, I don’t have a PC so I am using a script(php) to generate tile map, but the problem is it generates only a tmx file and phaser doesn’t seem to support it…

so I there any way, like a online converter or so?

Thanks very much


(Thorbjørn Lindeijer) #2

There is no online converter as far as I am aware, but Tiled does ship with built-in conversion capabilities on the command-line using the --export-map option:

tiled --export-map [format] <source file> <target file>

The format is optional (it will be derived from the file extension of the target file if possible). In your case this command should work:

tiled --export-map map.tmx map.json

(Avi Pheimei) #3

Thanks but the problem is.
I dont have tiled, i made the map using a mobile editor, it exports only tmx files and phaser dont support it


(Thorbjørn Lindeijer) #4

Ah, I somehow read past the part where you said “I don’t have a PC”. I’m sorry but at the moment I don’t know of a ready made converter that can be used without a PC.


(Avi Pheimei) #5

Haha no problem. thanks anyways
Looks like im gonna make games :slight_smile:


(魔大农) #6

Feel free to PM me a TMX (or some) to convert once in a while - not too often please :wink: - until then.

I’m currently also not at my laptop though. :slight_smile:


(Avi Pheimei) #7

Ok thank you so much,
I can start making maps now, you’re a life saver :slightly_smiling_face: