home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / AgnesSorel.dxr / 00096_muffet.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  577 b   |  26 lines

  1. property spriteNum, muffet, ogLoc, direc, motion
  2.  
  3. on beginSprite me
  4.   muffet = sprite(spriteNum)
  5.   ogLoc = muffet.locV
  6.   puppetSound(5, member("coming down"))
  7.   direc = 1
  8. end
  9.  
  10. on enterFrame me
  11.   if muffet.flipV then
  12.     muffet.locV = muffet.locV - 1
  13.     if muffet.locV < (0 + (muffet.height / 2)) then
  14.       muffet.flipV = not muffet.flipV
  15.       puppetSound(5, member("coming down"))
  16.     end if
  17.   else
  18.     if not muffet.flipV then
  19.       muffet.locV = muffet.locV + 7
  20.       if muffet.locV >= 278 then
  21.         muffet.flipV = not muffet.flipV
  22.       end if
  23.     end if
  24.   end if
  25. end
  26.