0 Favourites

How do I Collision with multiple objects

  • 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

    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

    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

  • 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

  • Construct 3

    Buy Construct 3

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

    Buy 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

    My pleasure

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