Hi folks, I need help with some basic lingo.
Let's say, I have a Sprite X that explodes and touching 100 other different sprites.
What I'm doing now is:
If sprite X intersects 1 then...
If sprite X intersects 2 then...
So on... 100 times
I would like to have single line of lingo for all these sprites, something like "If sprite X intersects THE CURRENT SPRITE then...
Any suggestions? Thanks
Did you try something like
-- ... repeat with n = 1 to 100 if sprite(whatever).intersects(n) then -- do whatever you need to here end if end repeat