I have the following capx
I'm trying to get the goodies to fire independently from each other.
I need the goodies to detect the baddies only when a baddie is on the same Y position as the goodie. I tried this using; abs(goodie.Y-baddieY) < 2000 which seems to work but, whenever any baddie is on the same Y as a goodie all the goodies fire. The bottom baddie is slightly off the Y of the goodie but, the goodie still fires.
Do I need to foreach the baddies as well?
Thanks in advance.