In my game, members of a family are visible only when the mouse is overlapping them. However, if the mouse is overlapping two members of the family at the same time, I only want the most recently touched object to be visible. Basically, so that only one member of the family can be visible at one time. Is this possible?
At the moment, I have:
If mouse is overlapping family --> set family opacity to 100
If mouse is not overlapping family --> set family opacity to 0
Fairly simple, but I can't think of a way to accomplish what I need. If anyone is able to help, I would really appreciate it.