Sorry, can you explain that a bit more? I like the idea, but surely you have to check all the sprites, to find out which is the nearest?
I mean, how do I get a return number for the actual sprite Ive collided with?
If I have,m say, 200 sprites running, and sprite1 has hit one of them, but I want to know which number it is, without going"check sprite2, is ther ea collision, check sprite 3, is there a collision etc all the way to 200. It seems the example above assumes I know the number of the second sprite, or at least its then just gonna be that on, whereas what if I want to do some other suff and its linked to my sprite number? SOrry to be a bore....
GIve me more power!