TSX/TMX import?

Krileon
Member
Registered: 2014-06-01
Posts: 41

Topic

Would it be possible to generate a tileset from a TSX file, which is output by Tiled Map Editor (http://www.mapeditor.org/)? I bought a few assets and most seam to come in TSX format. Otherwise I'll have to try and generate a tileset from the plain texture, which would suck, but is doable. TMX is the level format that Tiled Map Editor outputs and would be cool if a tile system could be generated and painted from it.

Lea Hayes
Rotorz Limited
From: United Kingdom
Registered: 2014-03-04
Posts: 638

Response 1

I am not familiar with the TSX or TMX file formats but I suspect that it would be possible for you to create a script to import tile map data from a TSX/TMX file and then populate a tile system.

Lea Hayes
Rotorz Limited
From: United Kingdom
Registered: 2014-03-04
Posts: 638

Response 2

I just did a quick search, perhaps the following would be useful?
https://github.com/marshallward/TiledSharp

It looks like this API reads the TSX/TMX data files, you could then use this data to generate your brushes, tilesets and tile systems.

Krileon
Member
Registered: 2014-06-01
Posts: 41

Response 3

I know there's other assets that can do it, but seamed like would be an incredible feature to have. RTS is a tile system and makes sense to support the most widely used tile map editor. Anyway, I've went ahead and just generated the spiritesheet and created the prefabs manually from it then put them together as an oriented brush so I could have scripts on my prefabs.

Lea Hayes
Rotorz Limited
From: United Kingdom
Registered: 2014-03-04
Posts: 638

Response 4

I have refiled this topic under "Feature Requests", thanks :)

beit
New Member
Registered: 2016-07-15
Posts: 2

Response 5

Dear Krileon,

is there any update on this feature? I would buy your tool right now if this had tmx support.

Best,
Enrico

beit
New Member
Registered: 2016-07-15
Posts: 2

Response 6

Is there someone that can give me an answer?

Lea Hayes
Rotorz Limited
From: United Kingdom
Registered: 2014-03-04
Posts: 638

Response 7

beit wrote:

Is there someone that can give me an answer?

Rotorz Tile System does not have TSX/TMX import support out of the box but you should be able to use the following library: https://github.com/marshallward/TiledSharp

to read the map data and then populate your tile system with tiles using the Rotorz Tile System painting API: http://rotorz.com/unity/tile-system/doc … t-painting