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.
There is going to be more than just one of each object eventually