Fabricio, I've already explained why your script doesn't work so it will 
be helpful if you re-read my last post. The problem lies, in largest 
part, with your reassignment of "spriteAnal" and "i" within the repeat 
loop.

To acheive what you want (rightMouseDown on a card to verify all cards 
that intersect with that card), modify the previous code to use this:


  listaSpritesMovidos2=[:]
  --listaSpritesMovidos2.sort()
  spriteAna = me.spriteNum
  repeat with i=160 to 264
    if sprite(i).intersects(spriteAna) and i <> spriteAna then 
      listaSpritesMovidos2.setaProp(i,(sprite(i).loc))
    end if    
  end repeat
  --put listaSpritesMovidos2


Rich Shupe

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to