home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 November / WPCNOV96.ISO / grownov.dxr / 00056_GROQuitCD.ls < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.8 KB  |  79 lines

  1. on GROQuitCD
  2.   global GROQuittingList, IFLQuitsprite, GROQuitCounter, GROChooseQuit
  3.   if rollOver(IFLQuitsprite) then
  4.     repeat with t = 1 to count(GROQuittingList)
  5.       if t <> 1 then
  6.         setAt(getAt(GROQuittingList, t), 2, the castNum of sprite getAt(getAt(GROQuittingList, t), 1))
  7.       end if
  8.       set the castNum of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 3)
  9.       set the ink of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 5)
  10.     end repeat
  11.     updateStage()
  12.     repeat while rollOver(IFLQuitsprite)
  13.       if the mouseDown then
  14.         if the castNum of sprite 10 <> "0" then
  15.           if the type of member the member of sprite 10 = #digitalVideo then
  16.             set the movieRate of sprite 10 to 0
  17.           end if
  18.         end if
  19.         set GROChooseQuit to 1
  20.         set the castNum of sprite 48 to 82
  21.         set the locH of sprite 48 to 500
  22.         set the locV of sprite 48 to 420
  23.         set the ink of sprite 48 to 0
  24.         set the castNum of sprite IFLQuitsprite to 86
  25.         set the ink of sprite IFLQuitsprite to 36
  26.         updateStage()
  27.         exit repeat
  28.       end if
  29.     end repeat
  30.     if GROChooseQuit = 1 then
  31.       repeat while 1
  32.         wait(0.01)
  33.         set GROQuitCounter to 1 + GROQuitCounter
  34.         if GROQuitCounter = 15 then
  35.           set the castNum of sprite 48 to the castNum of sprite 48 + 1
  36.           updateStage()
  37.         else
  38.           if GROQuitCounter = 30 then
  39.             set GROQuitCounter to 0
  40.             set the castNum of sprite 48 to the castNum of sprite 48 - 1
  41.             updateStage()
  42.           end if
  43.         end if
  44.         if (the mouseH > 548) and (the mouseH < 605) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  45.           set the locH of sprite 48 to 2000
  46.           set GROQuitCounter to 0
  47.           set GROChooseQuit to 0
  48.           if the castNum of sprite 10 <> "0" then
  49.             if the type of member the member of sprite 10 = #digitalVideo then
  50.               set the movieRate of sprite 10 to 1
  51.             end if
  52.           end if
  53.           exit repeat
  54.         end if
  55.         if (the mouseH > 442) and (the mouseH < 504) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  56.           set GROQuitCounter to 0
  57.           set GROChooseQuit to 2
  58.           exit repeat
  59.         end if
  60.       end repeat
  61.     end if
  62.     if GROChooseQuit = 0 then
  63.       repeat with t = 1 to count(GROQuittingList)
  64.         set the castNum of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 2)
  65.         set the ink of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 4)
  66.       end repeat
  67.       updateStage()
  68.     end if
  69.   end if
  70.   if GROChooseQuit = 2 then
  71.     repeat with t = 1 to 48
  72.       puppetSprite(t, 0)
  73.     end repeat
  74.     puppetPalette(0)
  75.     go("Credits")
  76.     updateStage()
  77.   end if
  78. end
  79.