Can you connect objects?

Get help using Construct 2

Post » Wed Jan 30, 2013 10:26 am

Hi all,

I'm making an isometric top down game, and it has destroyable walls.

I'm using 32x32 tiles in this game.

When I have a wall that has no other wall under it, because it's isometric, you can also see the wall side.

e.g. here the X is the destroyable part, o is normal wall, = is side wall:

OXOOO
OXOOO
=====
^

My problem is when I destroy the bottom wall I want to make the highlighted side-wall go along with it.

I've done what I think is a messy solution of making a new sprite:

X
=

..Which is 32x64.

And then catering for both object types when I look for a bullet hitting either a normal destroyable wall (objectA) or the longer destroyable wall (object B).

This seems messy because it's double the code and involved making a new asset for one scenario.

So long story sort, is there a way to combine two objects and have the event list cater for it.. something like

Destroyable wall is hit: 1, destroy it 2, Destroy glued objects
B
20
S
6
G
2
Posts: 157
Reputation: 3,109

Post » Wed Jan 30, 2013 10:27 am

Argh I can't see an edit button and the posted font messed up my little examples.

Hopefully it still makes sense withouy the example.
B
20
S
6
G
2
Posts: 157
Reputation: 3,109


Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2 and 22 guests