Is this possible?

For questions about using Classic.

Post » Sun Oct 14, 2012 5:24 pm

Is it possible to load a map editor from Tiled onto Construct?

Here is the source Click Here!!

Thanks!
B
14
S
2
G
1
Posts: 46
Reputation: 1,144

Post » Sun Oct 14, 2012 10:35 pm

Yes, but I think C2 is not very good to work with tiling like this... In the end I decided to export an image from tiled, and divide it into big pieces before importing to C2.

But if you want to try it, you can export the map as CSV, import it to C2, then use the CSV plugin and AJAX to load it. Then you can use a loop to create the tiles from the CSV table
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Mon Oct 15, 2012 12:25 am

Looks like he's using Construct Classic @7Soul. In that case, exporting to CSV is probably still easiest, but then you read it with the binary object I think.

Separating a line of values is like this: Item1 = GetToken(strCSVLine, 1, ","), but I'm not sure if it's 1 or 0 that is the starting item at the moment.
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
121
S
42
G
17
Posts: 2,219
Reputation: 19,800

Post » Tue Oct 16, 2012 2:56 pm

[QUOTE=Jayjay] Looks like he's using Construct Classic @7Soul. In that case, exporting to CSV is probably still easiest, but then you read it with the binary object I think.

Separating a line of values is like this: Item1 = GetToken(strCSVLine, 1, ","), but I'm not sure if it's 1 or 0 that is the starting item at the moment.[/QUOTE]

I'll try using the binary object.
B
14
S
2
G
1
Posts: 46
Reputation: 1,144


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests