home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 July / WPCJUL96.ISO / file.exe / GROFINJ.DXR / 00070_GROQuitCD.ls < prev    next >
Encoding:
Text File  |  1996-05-15  |  2.4 KB  |  69 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.       GRONoise()
  14.       if the mouseDown then
  15.         set GROChooseQuit to 1
  16.         set the castNum of sprite 48 to 82
  17.         set the locH of sprite 48 to 500
  18.         set the locV of sprite 48 to 420
  19.         set the ink of sprite 48 to 39
  20.         set the castNum of sprite IFLQuitsprite to 86
  21.         updateStage()
  22.         exit repeat
  23.       end if
  24.     end repeat
  25.     if GROChooseQuit = 1 then
  26.       repeat while 1
  27.         GRONoise()
  28.         wait(0.01)
  29.         set GROQuitCounter to 1 + GROQuitCounter
  30.         if GROQuitCounter = 15 then
  31.           set the castNum of sprite 48 to the castNum of sprite 48 + 1
  32.           updateStage()
  33.         else
  34.           if GROQuitCounter = 30 then
  35.             set GROQuitCounter to 0
  36.             set the castNum of sprite 48 to the castNum of sprite 48 - 1
  37.             updateStage()
  38.           end if
  39.         end if
  40.         if (the mouseH > 548) and (the mouseH < 605) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  41.           set the locH of sprite 48 to 2000
  42.           set GROQuitCounter to 0
  43.           set GROChooseQuit to 0
  44.           exit repeat
  45.         end if
  46.         if (the mouseH > 442) and (the mouseH < 504) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  47.           set GROQuitCounter to 0
  48.           set GROChooseQuit to 2
  49.           exit repeat
  50.         end if
  51.       end repeat
  52.     end if
  53.     if GROChooseQuit = 0 then
  54.       repeat with t = 1 to count(GROQuittingList)
  55.         set the castNum of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 2)
  56.         set the ink of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 4)
  57.       end repeat
  58.       updateStage()
  59.     end if
  60.   end if
  61.   if GROChooseQuit = 2 then
  62.     repeat with t = 1 to 48
  63.       puppetSprite(t, 0)
  64.     end repeat
  65.     go("Credits")
  66.     updateStage()
  67.   end if
  68. end
  69.