...check if 2 objects aren't touching?

0 favourites
  • 2 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • Hello peoples.

    I have 2 objects, one in-front and one behind. I want it so that when you click the in-front object, they'd both destroy. I tried doing this by having the behind object destroy on mouse overlap - thinking that when I click on the in-front object, the mouse overlap would destroy the behind one. But, when I had my mouse over it'd just destroy the behind object.

    So now, I'm trying to use an instance variable to detect when the behind object isn't being overlapped by the in-front object, then have the mouse destroy it on overlap.

    Do you know how to do this? Or just to make the mouse does not destroy the behind object, when the in-front object is still there.

    Thanks, Xanco

    There is going to be more than just one of each object eventually

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try this out. I assumed that you when you click on the front object you want all associated objects destroyed.

    I included two examples that do the same thing so take your pick which you want to implement.


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