Referencing an object you collide with

0 favourites
  • 4 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Hi there!

    I'm coming from Unity where referencing a specific object that collided was pretty easy. I am wondering how I can do that. I realize that I can use UIDs to target specific instances of an object but how could I refer to the specific object I collide with?

    Like, if I want to destroy object B when it collides with object A, but I have multiple objects of type B, how do I do that?

    Thanks in advance and thank you for the cool and super fast engine!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are using the "On collision" event, both objects are automatically picked. As long as you stay within scope, you don't have to do anything.

    C3 has a unique picking mechanism. You need to take time to familiarize yourself with this, to get the most benefit.

  • If you are using the "On collision" event, both objects are automatically picked. As long as you stay within scope, you don't have to do anything.

    C3 has a unique picking mechanism. You need to take time to familiarize yourself with this, to get the most benefit.

    Thank you! Does the same apply to the LOS behavior and other behaviors that detect other objects?

  • Generally yes. C3 is all about picking objects.

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