[Suggestion] Tile Map "Collision Painting"

Discussion and feedback on Construct 2

Post » Tue Nov 05, 2013 2:16 pm

The moment the long-awaited tile-map plugin was introduced, I couldn't help but notice the questions about how to go about handling collision. Well, I do have an idea that could make life easier for everyone...

Have a separate 'tile palette' that contains a set of generic shapes scaled to the size of the tiles, such as full squares, rectangles that partially cover the tile, triangles for slopes, etc. These are 'painted' over the graphical tiles, and don't appear in runtime (unless you want them to for debugging purposes), and represent collision polygons. That way, you can enable static tile collision that can be individually shaped for each tile. Hell, you might even be able to make your own collision tiles for your own needs, depending on what's possible.

Sure, it's not perfect, but at least you won't have to create collision sprites for individual tiles. I'm not sure if it's doable in terms of the technical details, but it's worth suggesting, at least.
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Tue Nov 05, 2013 6:13 pm

I think it would be better in the long run to try implementing per pixel collision or some kind os collision mask that we could use with each tileset.
B
39
S
8
G
3
Posts: 440
Reputation: 6,903


Return to Construct 2 General

Who is online

Users browsing this forum: Google [Bot] and 2 guests