Hello.
I have an issue with detecting right instance of sprite from container who overlap sprite from family and have right variable value.
Example:
There is a lamp.
There is a detector (or wire) in container with a lamp.
There is a power source sprite from the family. Power source has on/off conditions. Any number of power sources can be placed on the detector.
When detector overlaps with powered power source(atleast with one of them), the lamp turns on.
If there is no overlap or power source is off, than lamp is off.
Right now when powered power source overlap one of detector, all of detectors are powered. Even not connected with right power source.
So i need help with finding the correct detector that is overlap the powered power source.
Example project: drive.google.com/file/d/1CQOM7lY1qYWOMwRcClE3KRns1GMhRMNH/view
LMB on power source is switching on/off state. Power source also have dragndrop behavior.