That method gets crazy out of hand with more than 2 sprites, you'd have to put If Object 1 is not touched, if Object 2 is not touched etc infinite amounts of conditions for every overlap check with different object types, plus that still wouldn't work with multiple instances of the same object, it assumes SpriteA is always on top and then SpriteB etc as it checks them in order. My above method handles any number of overlapped objects with one event.
Yes, but I have found the solution as per punktum's request.
1. Two sprites.
2. Click an area that is overlapping.
3. Only the top sprite's event is triggered.
I've also experimented with the Families option, hence the 'Family1' object in my example file, but decided not to venture into that field any further after spending too much time on a new issue.
The issue I encountered was trying to trigger two different event actions (Green = scale x 1.5 & Blue = scale x 0.5) as Families, so that option required more than one set of extra code to allow the Blue to be picked as 'Pick top instance'.
When I encountered a similar issue in the past, I ended up spending days trying to find an answer without success.. so after spending slightly over an hour earlier today, I've decided to provide a solution on what punktum initially asked and step off; as that's better than giving him theological instructions without providing an actual example file on what to do on his own.
This issue appears to be simple to resolve, but it's not.
If anyone else could take over the coding, that would be great, as I want to learn too.
I have a feeling that an easy solution will be found with functions and arrays that I'm not fond of.