home *** CD-ROM | disk | FTP | other *** search
- on RESQuitCD
- global RESQuittingList, IFLQuitsprite, RESQuitCounter, RESChooseQuit
- if rollOver(IFLQuitsprite) then
- repeat with t = 1 to count(RESQuittingList)
- if t <> 1 then
- setAt(getAt(RESQuittingList, t), 2, the castNum of sprite getAt(getAt(RESQuittingList, t), 1))
- end if
- set the castNum of sprite getAt(getAt(RESQuittingList, t), 1) to getAt(getAt(RESQuittingList, t), 3)
- set the ink of sprite getAt(getAt(RESQuittingList, t), 1) to getAt(getAt(RESQuittingList, t), 5)
- end repeat
- updateStage()
- repeat while rollOver(IFLQuitsprite)
- if the mouseDown then
- set RESChooseQuit to 1
- set the castNum of sprite 48 to 84
- set the locH of sprite 48 to 522
- set the locV of sprite 48 to 446
- set the ink of sprite 48 to 36
- set the castNum of sprite IFLQuitsprite to 83
- updateStage()
- exit repeat
- end if
- end repeat
- if RESChooseQuit = 1 then
- repeat while 1
- wait(0.01)
- set RESQuitCounter to 1 + RESQuitCounter
- if RESQuitCounter = 30 then
- set the castNum of sprite 48 to the castNum of sprite 48 + 1
- updateStage()
- else
- if RESQuitCounter = 60 then
- set RESQuitCounter 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 RESQuitCounter to 0
- set RESChooseQuit 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 RESQuitCounter to 0
- set RESChooseQuit to 2
- exit repeat
- end if
- end repeat
- end if
- if RESChooseQuit = 0 then
- repeat with t = 1 to count(RESQuittingList)
- set the castNum of sprite getAt(getAt(RESQuittingList, t), 1) to getAt(getAt(RESQuittingList, t), 2)
- set the ink of sprite getAt(getAt(RESQuittingList, t), 1) to getAt(getAt(RESQuittingList, t), 4)
- end repeat
- updateStage()
- end if
- end if
- if RESChooseQuit = 2 then
- repeat with t = 1 to 48
- puppetSprite(t, 0)
- end repeat
- go("Credits")
- updateStage()
- end if
- end
-