home *** CD-ROM | disk | FTP | other *** search
- on ARTQuitCD
- global ARTQuittingList, IFLQuitsprite, ARTQuitCounter, ARTChooseQuit, ARTWhichPartList
- if rollOver(IFLQuitsprite) then
- repeat with t = 1 to count(ARTQuittingList)
- if t <> 1 then
- setAt(getAt(ARTQuittingList, t), 2, the castNum of sprite getAt(getAt(ARTQuittingList, t), 1))
- end if
- set the castNum of sprite getAt(getAt(ARTQuittingList, t), 1) to getAt(getAt(ARTQuittingList, t), 3)
- set the ink of sprite getAt(getAt(ARTQuittingList, t), 1) to getAt(getAt(ARTQuittingList, t), 5)
- end repeat
- repeat with f = 1 to count(ARTWhichPartList)
- if getAt(ARTWhichPartList, f) = 1 then
- if f = 1 then
- set the locH of sprite 34 to 2000
- next repeat
- end if
- if f = 2 then
- set the castNum of sprite 44 to 221
- set the ink of sprite 44 to 0
- set the castNum of sprite 42 to 222
- set the ink of sprite 42 to 0
- set the castNum of sprite 40 to 223
- set the ink of sprite 40 to 0
- next repeat
- end if
- if f = 3 then
- set the locH of sprite 33 to 2000
- end if
- end if
- end repeat
- updateStage()
- repeat while rollOver(IFLQuitsprite)
- if the mouseDown then
- set ARTChooseQuit to 1
- set the castNum of sprite 48 to 203
- set the locH of sprite 48 to 500
- set the locV of sprite 48 to 420
- set the ink of sprite 48 to 37
- set the castNum of sprite IFLQuitsprite to 202
- updateStage()
- exit repeat
- end if
- end repeat
- if ARTChooseQuit = 1 then
- repeat while 1
- set ARTQuitCounter to 1 + ARTQuitCounter
- wait(0.002)
- if ARTQuitCounter = 30 then
- set the castNum of sprite 48 to the castNum of sprite 48 + 1
- updateStage()
- else
- if ARTQuitCounter = 60 then
- set ARTQuitCounter 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 ARTQuitCounter to 0
- set ARTChooseQuit 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 ARTQuitCounter to 0
- set ARTChooseQuit to 2
- exit repeat
- end if
- end repeat
- end if
- if ARTChooseQuit = 0 then
- repeat with t = 1 to count(ARTQuittingList)
- set the castNum of sprite getAt(getAt(ARTQuittingList, t), 1) to getAt(getAt(ARTQuittingList, t), 2)
- set the ink of sprite getAt(getAt(ARTQuittingList, t), 1) to getAt(getAt(ARTQuittingList, t), 4)
- end repeat
- repeat with f = 1 to count(ARTWhichPartList)
- if getAt(ARTWhichPartList, f) = 1 then
- if f = 1 then
- set the locH of sprite 34 to 320
- end if
- end if
- end repeat
- updateStage()
- end if
- end if
- if ARTChooseQuit = 2 then
- repeat with t = 1 to 48
- puppetSprite(t, 0)
- end repeat
- go("Credits")
- updateStage()
- end if
- end
-