To Carl West:
Thanks for correcting my loop.
"This is a major problem. You need to restructure your project.
Members
can't intersect each other, only their sprite-instances can
intersect.
Maybe you can put sprites in channels that match their
castnumbers."
Actually there is a way to do it. I cannot check the sprite instances
against each other because they are randomly selected cast members.
>if sprite(i).memberNum = 8 then
>kill me
>end if
"As far as I know 'kill' isn't a lingo command (D7) and even if
it were,
trying to 'kill' an object from within itself is a recipe for
disaster."
"Kill" is a handler I defined elsewhere in my script.
"repeat with i = 6 to 8
� if sprite(mySprite).intersects(i) then
��� if sprite(i).memberNum = 7 then
����� sprite(mySprite).width = sprite(mySprite).width * 1.1
����� sprite(mySprite).height = sprite(mySprite).height * 1.1
��� end if
��� if sprite(i).memberNum = 8 then
����� kill me
��� end if
� end if
end repeat"
"You're used to coding in some other language aren't you? You
need to
spend some more time with the Lingo books and tutorials."
I am learning another language right now, and so my syntax can be compounded
for sure.
But I know that there is a way to check collisions of sprites, having either
the sprites or the movie script check the castNum of the sprite.
?
Any other thoughts are welcome.
Thanks Carl.
-NT
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
[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!]