So I have "Defenders" in a family. Then I have the "Defender Movers" which are bullet objects I attach to the Defenders to do their movement. Then I have "Detectors" which are large circles that are placed on the Defenders when they are created. The Detectors don't move with the Defenders, they are made so that the Defenders will only go after enemies that overlap inside the Detectors.
I want to make it so when an enemy is overlapping a Detector, the Defender Mover will set it's angle to the closest enemy to it and move towards it, while the Defender Sprite is attached to the Mover.
The problem I'm having is that only the first instance works. Any copies I make after that don't respond to enemies at all.
I don't fully understand how to make UID's work, what I have now is basically copied from an earlier part of my game from something similar.
Sorry for the large post, I'm not sure if there's a simpler way of doing what I'm trying here.
Thanks for any help.