Tiled files

For questions about using Classic.

Post » Tue Nov 02, 2010 4:33 am

I'm new here, trying to see if construct can fit my needs for my project. My project relies on many tile maps. Is it possible to load Tile map files from http://www.mapeditor.org/ into construct?
B
1
G
2
Posts: 3
Reputation: 631

Post » Tue Nov 02, 2010 6:13 am

I don't think Construct has that ability naturally, but it says on Tiled's sight that the info is stored in an xml. As long as the images are stored outside the program as well (so they could be loaded into Construct) I'm sure it can be done.

If you're willing to upload a pack of the pictures including a screenshot of what the end product should look like, and the .xml file I'll give it a shot.
B
2
S
2
G
3
Posts: 114
Reputation: 1,553

Post » Wed Nov 03, 2010 8:06 am

This is pretty much THE reason why I've been clamoring for a Tiled Plugin for a while, now. It would certainly make tile-based level design a LOT easier.
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Wed Nov 03, 2010 11:33 pm

That would be great, what I'm offering is an example of doing it event sheet though.. maybe with python.

But I second the nomination for a plugin!
B
2
S
2
G
3
Posts: 114
Reputation: 1,553

Post » Thu Nov 04, 2010 9:56 am

Okay... I might prepare a quick tile map and tile sheet, and send the whole thing over to you so you can try your hand at doing it with events, I probably wouldn't be able to figure it out, myself.
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Thu Nov 04, 2010 3:54 pm

I hope this works out ^^
But how would performance go? After all python can be a bit sluggish.
B
2
G
2
Posts: 32
Reputation: 714

Post » Thu Nov 04, 2010 5:44 pm

[quote="Cloud_GL":f3ux69co]I hope this works out ^^
But how would performance go? After all python can be a bit sluggish.[/quote:f3ux69co]

If there is it would only be at the start of the layout.

Also someone should check this out if your serious.
[url:f3ux69co]http://construct.svn.sourceforge.net/viewvc/construct/Plugins/Tileset/[/url:f3ux69co]
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Fri Nov 05, 2010 6:51 am

Alright, I made a quick tile map, with a tilesheet, the native Tiled file, and an XML file.

Let's see if we can get this working via events and/or Python.
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Sat Nov 06, 2010 6:36 pm

Python is the ideal route to take as it has good xml support.

Here is a cap that will load the map that Candescence posted in the previous post.
[url:3sumvwtb]http://dl.dropbox.com/u/5426011/examples2/tilemapLoad.cap[/url:3sumvwtb]
made in 0.99.96

Be sure to put the cap in the same directory as the map. Also you might need to install python because the xml modules aren't included in construct.
B
79
S
24
G
54
Posts: 4,751
Reputation: 40,765

Post » Sat Nov 06, 2010 10:46 pm

[quote:uvjw97xw]If there is it would only be at the start of the layout.[/quote:uvjw97xw]
Oh, nice, i thought it would draw it on every frame xD.

Wow it worked!
B
2
G
2
Posts: 32
Reputation: 714

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests