silkc2's Forum Posts

  • 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

  • You can? Brilliant! I must have been looking in the wrong place. Will double check, thanks. :)

  • Sorry to bump an old post but it does cover my question.

    I see it as a common requirement that you'd want a bounding box to be different in size to the sprite. e.g. For pretty much any isometric game where something is "sat" on the floor, you'd want to be able to walk behind it.

    Has anything been added to cover this in C2?

    Would you consider adding it if not?

    I think the best place to put something like this would be the "solid" behavior, new options which allow us to specify the rectangle of the solid area within the sprite (default: whole sprite).

  • I'll explore these options when I get home, many thanks :)

  • Or, if there's a completely different way of making the enemy move that's cool too.

    Thanks :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all

    New here, loving C2 so far and very close to buying already - looks like a nice active community.

    I've been making a simple dungeon shooter, and the enemies are set to "angle towards player" and "move forwards" every frame.

    It's pretty much exactly what I need in terms of making the enemies move, but I'd like to know how to do this without C2 drawing the enemy at it's new angle, i.e. I always want the sprite drawing at default rotation.

  • Hi, I'm Silk.. developer by day looking to ease off on the coding and just make games by night.