Just curious whats faster to calculate.
Let's say there's a 10 sprites "A" (container with "detector" sprite) and one sprite "B".
1.Every time "B" overlaps sprite "A" "detector" (one or few), "A" is doing something - until "B" stops overlaping it.
2.Every time "B" is in "distance(Ax, Bx, Ay, By) < 100" "A" is doing something - until "B" is in "distance > 100".
In first example you have two sprites - one sprite "A" and one sprite "detector" (which has to be always set to "A" position" for this to work)
In second example there's only one sprite "A" and detection is made by events.
If i'm thinking correctly second example should be faster, right?