tilemap: load tmx at runtime?

Discussion and feedback on Construct 2

Post » Fri Dec 06, 2013 1:27 am

Could we get a "load tmx" action for tilemap? Since we can just use tilemap for making levels in construct now as a level editor and save/load tmx files it would be great load them at runtime so that its really simple and quick to do levels.
B
152
S
75
G
21
Posts: 1,795
Reputation: 23,285

Post » Fri Dec 06, 2013 12:42 pm

It would be difficult mainly because TMX files use a bunch of different internal formats (like zlib and gzip, which we'd need to find and import JS libraries to support) and is XML-based (so no CocoonJS support). It should work better if you stick to the JSON format that the Tilemap object uses itself. Perhaps an option could be added to Tiled to export in this format directly.
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

Post » Fri Dec 13, 2013 10:02 pm

Ah right, thanks for the response.

Yeah saving/loading as JSON in the C2 editor would be just as good, since you can load that at runtime already, so dynamic custom levels would be really easy to make then!
B
152
S
75
G
21
Posts: 1,795
Reputation: 23,285


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests