Importing Tilesets

For questions about using Classic.

Post » Sat Jul 18, 2015 4:41 am

I've just recently been working with Construct Classic, and so far it's been great. I feel like I've accomplished so much for the very short time I've been using it. I'm excited to keep working, but there are just a few questions that I haven't been able to find answers to myself. Sorry my first post on here is a pestering cry for help, but maybe these are all easily answered (and I'm just dumb).
First off, is it possible to use a tile set in CC, whether that's a TMX, JSON, or image file? The way I see it, I can only import tiles one at a time as separate objects, and even then, I can't imagine how I would be able to properly organize an entire game's worth of tiles this way- which leads to another question: is it possible to store an objects folder in another objects folder? I've tried dragging them into one another but that doesn't seem to work.
I've tried looking for plugins that could remedy the tileset issue (like TMX/JSON importers) but most seem to be made for C2. Unless it is possible through one of the existing CC features. After all, there's a lot to CC that I have yet to understand. Arrays seemed to be similar to the concept of a tileset, but as of right now I have little knowledge of how to use them.
A bonus feature that would be awesome to achieve is to have a tileset that is able to store tile properties and values within its grid. But that could be a later step, for now I'm just concerned about importing a working tileset.

Thanks for reading my post.

-edit- Moved this to the help section.
B
2
Posts: 5
Reputation: 162

Post » Sat Jul 18, 2015 4:04 pm

Construct Classic didn't have a built-in tile plugin/support if I remember correctly, but you can check this list (might be outdated): list-of-all-plugins-add-on_t62655

Otherwise, there could be some events you could use combined with an Array to automatically spawn tiled backgrounds and place them in correct places and layers.

My game I Had Hope loaded almost everything (other than code) from a file, and is open source if you want to check it out: http://ihadhope.blogspot.ca/p/download.html

However, I didn't use a tilemap and hadn't started/finished a map editor (created them by hand, they're just INI files written as .iam or .dcd, etc).

Can you post a link to a tmx (remove the . so http://www(dot)google(dot)com to bypass link blocker), or JSON and I'll see if I can make events to load it for you? Need the spritesheet/tiles too.
"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 » Sat Jul 18, 2015 8:52 pm

Can you post a link to a tmx (remove the . so )google(dot)com to bypass link blocker), or JSON and I'll see if I can make events to load it for you? Need the spritesheet/tiles too.


Not sure how to send the .TMX file of the tileset (please try to excuse how forum posting inept I am). But my current spritesheet is here: i57(dot)tinypic(dot)com/y8m9(dot)png


update: now facing a new problemo with z elevation. Trying to make top-down depth, maybe you can visualize how i want it to act through the provided tileset. But anyway, changing the z elevation of my player family of objects (animations, hitbox, ect.) to anything other than 0 makes it disappear completely, kind of puzzling.
B
2
Posts: 5
Reputation: 162

Post » Sat Jul 18, 2015 9:53 pm

Z elevation depends on camera settings, etc, but I will look into that, can you make a mock-up of a single room using the tileset for me? I can re-create that in tiled (using layers probably) so that I can make the TMX and do events to load it for you. Might end up writing a tool that converts it to INI format from the TMX or JSON, but either way I'll make it straight-forward as possible :)

Best thing about loading levels from a file is that it makes your game modable, and should avoid some glitches Construct Classic can get when making a large game!
"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 » Sun Jul 19, 2015 3:27 pm

I'm actually using a camera plugin AdvancedCamera, and I cant seem to find a Z option for any of the events that come with it. But anyway, here's a level I threw together. There is depth and overlap involved in this room, so layers would come in handy: (http)://oi60(dot)tinypic(dot)com/15hyhrm(dot)jpg

I put http in parenthesis too.

I made an updated tileset while designing the quick mockup: (http)://oi62(dot)tinypic(dot)com/2e3mn3r(dot)jpg

Thanks for the effort and thought your putting towards this problem of mine, I really appreciate it. I also prefer the idea of loading levels from files. Just have to set up a way of doing this.

-edit- It seems like Z elevation doesn't take visual effect when camera zoom is on. So I have to find a way to make the camera work the way it was when I was using zoom, but without zoom. Z elevation seems to increase the size of things when set to high values, the same way zoom does, so I guess I can use Z elevation to replace zoom values.
B
2
Posts: 5
Reputation: 162

Post » Mon Jul 20, 2015 3:00 am

Great thanks for the updated tileset and mockup! I haven't used AdvancedCamera, but what I will do should only use events and built-in plugins, so you can use it with AdvancedCamera too then I think.

How were you using the zoom?
"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 » Mon Jul 20, 2015 4:03 am

I was just using the zoom to change the size of sprites in the game window. Makes more sense to use Z position now that I have a better understanding of its function.
B
2
Posts: 5
Reputation: 162

Post » Mon Jul 20, 2015 4:55 am

Okay great, I will look into making a fairly straight-forward way of making tiled TMX files (probably CSV format) load into Construct Classic using some tiled background objects for each tile image. (for importing sprites into Construct Classic, the RGB for transparent is 255,0,255)
"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 » Thu Jul 23, 2015 5:12 am

I would love to check out the .cap of your game, seems like there's a lot to learn from it. But getting the needed plugins seems difficult right now, most of the original download links are deactivated.

Anyway, still tweaking things, learning things, and getting stuck here and there.
B
2
Posts: 5
Reputation: 162

Post » Thu Jul 23, 2015 4:21 pm

Hmm not sure what isn't available as these should be all that's needed:

Construct Classic R2 - http://sourceforge.net/projects/constru ... e/download

(latest version, not shown on the Scirra site)

Texture Setter plugin - viewtopic.php?t=61573&start=0

Unique Sprite plugin - viewtopic.php?t=61546&start=0

Path Movement Behavior plugin - viewtopic.php?t=57756&start=0

Coloured Outline plugin - viewtopic.php?t=56454&start=0

(right click and Save As for the coloured outline).

They seem to still be up for me, but I can PM you a pre-packaged zip file with all of them too if that helps!

This week has been pretty busy with work so hopefully by next week I can have some more news about tile importing :)
"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

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests