Tilesets in Construct 2 ?

Get help using Construct 2

Post » Tue Jan 10, 2012 7:14 pm

Hey there! Pixoshiru speaking!
I'm new to Construct 2 and still in the process of going through the whole forum, but allow me to try saving some of my time by taking the risk of asking a possibly already covered question :

Is there a way to use tilesets in Construct2?
I believe it is in Construct Classic (although through plug-ins, if I understood correctly) and I was wondering if it was in C2.

Aside from that, I really enjoy my time with the engine so far and hope to post some playable stuff of my own in a decently near future!

Pixo.
B
9
S
1
G
2
Posts: 2
Reputation: 1,878

Post » Tue Jan 10, 2012 7:30 pm

I think you are referring to loading tile frames, right? On CC you can use TiledBackground and load the image from an external file, and then position it. This is nice because you can have one image containing the entire tileset.
But on C2 you will have to use sprites, where each frame is a tile, and then set the current frame via events. This can be a lot of work, since each frame holds only one tile
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Tue Jan 10, 2012 8:08 pm

We're hoping to improve this in future, but for now you can:

- 'import sprite strip' in the animation editor to import a tile map as animation frames
- set the animation speed to 0
- enable 'snap to grid' (ribbon View tab)
- ctrl+drag to make new tiles, and use the 'initial frame' property to switch tile.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Jan 10, 2012 8:18 pm

I think the way to use tileset in c2, is to import your tileset via the "import sprite strip..." option and split them accrodingly.
You can then use animation frame, in the eventuality you want to make Array-based level maps.
Array.at(10,25) = 2 would mean that you would create a sprite at 10,25 (* cellSize eventually) and it's animation frame would be 2.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue Jan 10, 2012 11:58 pm

Yeah currently that's the best way. Making your own tile editor in Classic or maybe C2 that exports the map as array and then importing. I can't think of a better way right now. Kiyoshi2012-01-11 00:00:08
B
58
S
13
G
10
Posts: 632
Reputation: 12,505

Post » Wed Jan 11, 2012 2:29 pm

Thank you all for your answers!! I'll look into all of that!
B
9
S
1
G
2
Posts: 2
Reputation: 1,878

Post » Fri Jan 13, 2012 1:30 am

An idea to make this alot easier, A tool to crop out animated frames from an imported sprite strip ... simply select tool, crop to desired area, confirm and a new animated frame is made, the original frame is not edited atall ...

would be a pretty powerful feature I think :)ahostbr2012-01-13 04:26:13
B
1
Posts: 1
Reputation: 277

Post » Fri Jan 13, 2012 12:35 pm

@ahostbr
I think the "import sprite strip" does the work well.
We were told in the blog that some new feature would be available soon for the image editor. In cc you could select an area and then Ctrl+C, change frame, Ctrl+V. Seems to be what you described
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Jan 13, 2012 5:12 pm

I can simply use GameMaker HTML5 to replace the tileset editor :D
i made level with GameMaker HTML5 room editor based on tilesets, than I made an empty object in game maker before import them to C2 (because C2 can't import GMX project without any objects, hope Ashley will remove this check, it's unnecessary) than It's works !! this only require GameMaker HTML5.

Tom2012-01-14 04:50:03
B
22
S
3
G
5
Posts: 141
Reputation: 5,117

Post » Thu May 17, 2012 8:18 pm

That.... looks... cool... and yet.. irritating.. :P Whatever works for you haha! I came to a severe halt with developing my game since I am a programmer not a spriter. However, I started new using all terraria graphics until I can get my friend to sprite for me. Already made me a nice set of armor, so yeah.

Shame about non-functional tilesets though.
B
26
S
5
G
5
Posts: 98
Reputation: 4,734

Next

Return to How do I....?

Who is online

Users browsing this forum: YoHoho and 13 guests