How can I do this :
I have a bunch of identical sprite randomly placed on screen and I want to perform an action on all the sprites that are touching one specifically picked sprite in the group.
I can do a "for each" to see which sprites are touching the selected one, but how can I perform an action on them?
if I do something like this:
[code:2i12b1dj]+ball is "selected" (I switch a variable from 0 to 1)
->+for each "ball" object
->->+"ball" is overlapping "ball"
->->->+Do something to ball
As you can see this results in an horrible mess and i'm not sure anymore which instance of ball object is being tested and which one is being acted upon.
So am I missing something? Is there an easy way to scan through all the objects related to a particular object of the same category and operate on these related objects?