To the List:

I want to check the intersection of these three sprites.  I'm unsure how to 
call them.  Here is a piece of my code with notes specifying what intersects 
I'd like to create where.  I'm new to these OOP on new me behaviors and 
Lingo for that matter.

on new me, whichSprite, whichMember
  mySprite = whichSprite
  myMember = whichMember
  myMove = myMember.word[1] & "Animate me"
  case(myMember.word[1]) of
    "bee":
      myTime = the ticks + (60 * 30)
      sprite(mySprite).loc = point(random(800), random(600))
      sprite(mySprite).member = myMember
      --if sprite(mySprite).intersect.sprite("aster shape") then
        sprite(mySprite).width = sprite(mySprite).width * 1.1
        sprite(mySprite).height = sprite(mySprite).height * 1.1
        end if
        --if sprite(mySprite).intersect.sprite("spider shape") then
        kill me
        end if
    "aster":
      myTime = the ticks + (60 * 30)
      sprite(mySprite).loc = point(random(730), random(220)+350)
      sprite(mySprite).member = myMember
        --if sprite(mySprite).intersect.sprite("bee shape") then
        sprite(mySprite).width = sprite(mySprite).width * 1.1
        sprite(mySprite).height = sprite(mySprite).height * 1.1
        end if
        --if sprite(mySprite).intersect.sprite("spider shape") then
        kill me
        end if
    "spider":
      myTime = the ticks + (60 * 30)
      sprite(mySprite).loc = point(random(800), random(600))
      sprite(mySprite).member = myMember
        --if sprite(mySprite).intersect.sprite("bee shape") then
        sprite(mySprite).width = sprite(mySprite).width * 1.1
        sprite(mySprite).height = sprite(mySprite).height * 1.1
        end if
        --if sprite(mySprite).intersect.sprite("aster shape") then
        kill me
        end if
  end case
  return me
end

Thanks for any coding suggestions you can give.  I think it's almost there.

-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!]

Reply via email to