home *** CD-ROM | disk | FTP | other *** search
- on REFQuitCD
- global REFQuittingList, IFLQuitsprite, REFQuitCounter, REFChooseQuit
- if rollOver(IFLQuitsprite) then
- repeat with t = 1 to count(REFQuittingList)
- if t <> 1 then
- setAt(getAt(REFQuittingList, t), 2, the castNum of sprite getAt(getAt(REFQuittingList, t), 1))
- end if
- set the castNum of sprite getAt(getAt(REFQuittingList, t), 1) to getAt(getAt(REFQuittingList, t), 3)
- set the ink of sprite getAt(getAt(REFQuittingList, t), 1) to getAt(getAt(REFQuittingList, t), 5)
- end repeat
- updateStage()
- repeat while rollOver(IFLQuitsprite)
- if the mouseDown then
- set REFChooseQuit to 1
- set the castNum of sprite 48 to 208
- set the locH of sprite 48 to 500
- set the locV of sprite 48 to 420
- set the ink of sprite 48 to 39
- set the castNum of sprite IFLQuitsprite to 212
- updateStage()
- exit repeat
- end if
- end repeat
- if REFChooseQuit = 1 then
- repeat while 1
- wait(0.01)
- set REFQuitCounter to 1 + REFQuitCounter
- if REFQuitCounter = 30 then
- set the castNum of sprite 48 to the castNum of sprite 48 + 1
- updateStage()
- else
- if REFQuitCounter = 60 then
- set REFQuitCounter to 0
- set the castNum of sprite 48 to the castNum of sprite 48 - 1
- updateStage()
- end if
- end if
- if (the mouseH > 548) and (the mouseH < 605) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
- set the locH of sprite 48 to 2000
- set REFQuitCounter to 0
- set REFChooseQuit to 0
- exit repeat
- end if
- if (the mouseH > 442) and (the mouseH < 504) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
- set REFQuitCounter to 0
- set REFChooseQuit to 2
- exit repeat
- end if
- end repeat
- end if
- if REFChooseQuit = 0 then
- repeat with t = 1 to count(REFQuittingList)
- set the castNum of sprite getAt(getAt(REFQuittingList, t), 1) to getAt(getAt(REFQuittingList, t), 2)
- set the ink of sprite getAt(getAt(REFQuittingList, t), 1) to getAt(getAt(REFQuittingList, t), 4)
- end repeat
- updateStage()
- end if
- end if
- if REFChooseQuit = 2 then
- repeat with t = 1 to 48
- puppetSprite(t, 0)
- end repeat
- go("Credits")
- updateStage()
- end if
- end
-