Collisions with the same Object

0 favourites
  • 1 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Goal -

    I'm trying to detect collision between two of the same objects (the player) in my local multiplayer game (which uses multiple player instances).

    A player needs to be able to stomp the other, hurting the lower one, while boosting the higher one (based on the Y value)

    Problem -

    'Pick by nth instance' doesn't seem to work as expected when trying to identify the collided objects. Also using functions with UID as parameters isn't working either.. I'm sure there is a simple solution out there, a lot of forums lead to dead links/examples.

    I also want to avoid using extra mask objects/families if possible, trying to keep it contained to one player object.

    Example code:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)