home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 July / WPCJUL96.ISO / file.exe / GESFINJ.DXR / 00015_GESQuitCD.ls < prev    next >
Encoding:
Text File  |  1996-05-15  |  2.6 KB  |  73 lines

  1. on GESQuitCD
  2.   global GESQuittingList, IFLQuitsprite, GESQuitCounter, GESChooseQuit, GESWhichXplor
  3.   if rollOver(IFLQuitsprite) then
  4.     repeat with t = 1 to count(GESQuittingList)
  5.       if t <> 1 then
  6.         setAt(getAt(GESQuittingList, t), 2, the castNum of sprite getAt(getAt(GESQuittingList, t), 1))
  7.       end if
  8.       set the castNum of sprite getAt(getAt(GESQuittingList, t), 1) to getAt(getAt(GESQuittingList, t), 3)
  9.       set the ink of sprite getAt(getAt(GESQuittingList, t), 1) to getAt(getAt(GESQuittingList, t), 5)
  10.     end repeat
  11.     if GESWhichXplor = 1 then
  12.       set the castNum of sprite 42 to 255
  13.       set the ink of sprite 42 to 39
  14.       set the castNum of sprite 40 to 256
  15.       set the ink of sprite 40 to 39
  16.     end if
  17.     updateStage()
  18.     repeat while rollOver(IFLQuitsprite)
  19.       if the mouseDown then
  20.         set GESChooseQuit to 1
  21.         set the castNum of sprite 48 to 253
  22.         set the locH of sprite 48 to 500
  23.         set the locV of sprite 48 to 420
  24.         set the ink of sprite 48 to 39
  25.         set the castNum of sprite IFLQuitsprite to 252
  26.         updateStage()
  27.         exit repeat
  28.       end if
  29.     end repeat
  30.     if GESChooseQuit = 1 then
  31.       repeat while 1
  32.         set GESQuitCounter to 1 + GESQuitCounter
  33.         wait(0.002)
  34.         if GESQuitCounter = 30 then
  35.           set the castNum of sprite 48 to the castNum of sprite 48 + 1
  36.           updateStage()
  37.         else
  38.           if GESQuitCounter = 60 then
  39.             set GESQuitCounter 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 GESQuitCounter to 0
  47.           set GESChooseQuit to 0
  48.           exit repeat
  49.         end if
  50.         if (the mouseH > 442) and (the mouseH < 504) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  51.           set GESQuitCounter to 0
  52.           set GESChooseQuit to 2
  53.           exit repeat
  54.         end if
  55.       end repeat
  56.     end if
  57.     if GESChooseQuit = 0 then
  58.       repeat with t = 1 to count(GESQuittingList)
  59.         set the castNum of sprite getAt(getAt(GESQuittingList, t), 1) to getAt(getAt(GESQuittingList, t), 2)
  60.         set the ink of sprite getAt(getAt(GESQuittingList, t), 1) to getAt(getAt(GESQuittingList, t), 4)
  61.       end repeat
  62.       updateStage()
  63.     end if
  64.   end if
  65.   if GESChooseQuit = 2 then
  66.     repeat with t = 1 to 48
  67.       puppetSprite(t, 0)
  68.     end repeat
  69.     go("Credits")
  70.     updateStage()
  71.   end if
  72. end
  73.