0 Favourites

Can you connect objects?

  • 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

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)