Well, certainly a quick way to get the same result without changing the 
structure would be:

on exitFrame me
   go to the frame         -- Do you want this first?

   repeat with x=76 to 80
     if sprite 75 intersects sprite x then
       set the visible of sprite x to TRUE
       home
     end if
   end repeat
end



At 06:47 AM 5/21/01 +0000, Robert Knepher wrote:

>is there a better way to do this?
>
>on exitFrame me
>
>go the frame
>
>if sprite 75 intersects sprite 76 then
>
>set the visible of sprite 76 to TRUE
>
>home
>
>end if
>
>if sprite 75 intersects sprite 77 then
>
>set the visible of sprite 77 to TRUE
>
>home
>
>end if
>
>if sprite 75 intersects sprite 78 then
>
>set the visible of sprite 78 to TRUE
>
>home
>
>end if
>
>if sprite 75 intersects sprite 79 then
>
>set the visible of sprite 79 to TRUE
>
>home
>
>end if
>
>if sprite 75 intersects sprite 80 then
>
>set the visible of sprite 80 to TRUE
>
>home
>
>end if
>
>end
>
>
>
>
>----------


[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