I have lots of small objects which are supposed to carry out an action when it gets within range of the target.
Which would be less system intensive?
A) Create an AoE around the target, set its opacity to 0 and check for collision with the objects.
B) Use the distance(x1,y1,x2,y2) < AoE formula.
I normally use method B, but I suspect that method A would be better for performance with a lot of objects around.