Clusters of relative objects

Get help using Construct 2

Post » Thu Nov 22, 2012 3:03 pm

What's the best approach in doing clusters of objects with relative position and reusing these clusters as prefabs?

I want to make a auto-generated dungeon but I would like to design each room in the dungeon by hand.

So I would like to create room-prefabs, that I can create on run-time.

Any ideas / design approaches?
B
16
S
6
G
6
Posts: 100
Reputation: 4,840

Post » Thu Nov 22, 2012 3:19 pm

They use this method in Elemental: Fallen Enchantress for map-making, they call these "stamps". You can combine any amount of stamps to create visually stunning maps, such as a building, an impassable terrain feature and so on. These stamps can be created and modified at will.

In Construct 2, your best bet would be to define those rooms as lists of objects with relative coordinates. These rooms would have absolute dimensions and position as well as any other meta data (passability, environment etc.).

I would suggest creating some kind of room/stamp editor that can generate the necessary encapsulated data for you, you just need to place objects together.

And in the game, you could use placeholder sprites with references to those rooms.Mipey2012-11-22 15:20:33
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Nov 22, 2012 3:47 pm

I was afraid I'd have to do something like that. I guess if you do a generic one, you could potentially re-use the same stamp-editor for other projects.

Thank you for your input.
B
16
S
6
G
6
Posts: 100
Reputation: 4,840


Return to How do I....?

Who is online

Users browsing this forum: MarkThomas, theosciandra, Yahoo [Bot] and 16 guests