How do I Collision with multiple objects

0 favourites
  • 4 posts
From the Asset Store
Be quick and choose the right answer for the shown equation.
  • 1 - I'm doing a fighting game between two base

    2 - Both sides create units to fight each other.

    3 - The problem is when the units meet <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    Instead of just attacking a single enemy unit, it ends up dealing damage to several other units that are together.

    How do I attack him one at a time?

    .CAPX

    https://mega.nz/#!5bg10TBZ!QOleGSxRMazB ... fazKbswUio

    Translate PT/BR

  • I had this problem also until I learned that you can add an EXTRA condition using OBJECT that is colliding to PICK INSTANCES using the Z ORDER where you can say for example pick the top one when many collide.

    So:

    1) OBJECT #1 collides with OBJECT #2

    and 1 more condition: OBJECT #2 Z ORDER pick top/bottom > top

    ACTION: badaboom badabang

    That will solve your problem

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had this problem also until I learned that you can add an EXTRA condition using OBJECT that is colliding to PICK INSTANCES using the Z ORDER where you can say for example pick the top one when many collide.

    So:

    1) OBJECT #1 collides with OBJECT #2

    and 1 more condition: OBJECT #2 Z ORDER pick top/bottom > top

    >> ACTION: badaboom badabang

    That will solve your problem

    Perfect!!! Saved my project

    Thank you very much =D

  • > I had this problem also until I learned that you can add an EXTRA condition using OBJECT that is colliding to PICK INSTANCES using the Z ORDER where you can say for example pick the top one when many collide.

    >

    > So:

    > 1) OBJECT #1 collides with OBJECT #2

    > and 1 more condition: OBJECT #2 Z ORDER pick top/bottom > top

    > >> ACTION: badaboom badabang

    >

    > That will solve your problem

    >

    Perfect!!! Saved my project

    Thank you very much =D

    My pleasure

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