home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / CrazyCreeps.dxr / 00067_ContinueEvents.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  800 b   |  41 lines

  1. property pButton
  2.  
  3. on beginSprite me
  4.   pButton = sprite(me.spriteNum)
  5.   puppetSound(7, "levelcomplete10")
  6. end
  7.  
  8. on mouseEnter me
  9.   pButton.member = "LevelComplete-MouseOver"
  10.   puppetSound(4, "theButtonOver")
  11. end
  12.  
  13. on mouseLeave me
  14.   puppetSound(4, "theButtonOver")
  15.   pButton.member = "LevelComplete-Normal"
  16. end
  17.  
  18. on mouseUp
  19.   puppetSound(4, "reset")
  20.   tempVar = the frame
  21.   if (tempVar >= 2) and (tempVar <= 5) then
  22.     go(10)
  23.   else
  24.     if (tempVar >= 12) and (tempVar <= 15) then
  25.       go(20)
  26.     else
  27.       if (tempVar >= 22) and (tempVar <= 25) then
  28.         go(30)
  29.       else
  30.         if (tempVar >= 32) and (tempVar <= 35) then
  31.           go(40)
  32.         else
  33.           if (tempVar >= 42) and (tempVar <= 45) then
  34.             go(50)
  35.           end if
  36.         end if
  37.       end if
  38.     end if
  39.   end if
  40. end
  41.