14 Replies Latest reply on Apr 9, 2007 5:44 AM by BucketOnoodles

    Sprites intersection

    BucketOnoodles
      Hi!

      I want the player to tell me which sprite is currently rollovered by the mouse.
      To do this, I used Rollover() command.

      The problem is that there is a sprite that "follows" the mouse(sprite(X).loc = _mouse.mouseLoc) so the Rollover command shows sprite X.
      I want it to check every sprite behaind that sprite.
      I searched and found the sprite(X).intersects(y) command, but it does'nt work for me becuase I have to check as much as 100 sprite's channels every frame and a Repeat loop will get everything stuck.

      Is there a way of finding which sprites touches another sprite(touches the sprite who follows the mouse)?

      thanks!