home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global TELECNT, MAN, TELE, BUTGRID, TEMBUTGRID, SOL, UPG, SOLCNT, SOLUTIONFLAG, PUZZ, OPT
- if OPT = 5 then
- set the keyUpScript to "EEMPTY"
- if UPG = 0 then
- set the keyDownScript to "checkfor"
- CLEARPUP()
- go("closeoutsw")
- end if
- if UPG = 1 then
- set the keyDownScript to EMPTY
- CLEARPUP()
- go("CLOSEOUTREG")
- end if
- end if
- if SOLUTIONFLAG = 1 then
- GETDIR()
- end if
- if (OPT = 1) and (SOLUTIONFLAG = 0) then
- set OPT to 0
- play frame "OPTIONS"
- end if
- if (BUTGRID = 1000) and (MAN <> TEMBUTGRID) then
- set BUTGRID to 1001
- set the trails of sprite 10 to 1
- set the locH of sprite 10 to getAt(GRIDX, TEMBUTGRID)
- set the locV of sprite 10 to getAt(GRIDY, TEMBUTGRID)
- updateStage()
- set the locH of sprite 10 to -2000
- set the locV of sprite 10 to -2000
- set TEMBUTGRID to 1001
- updateStage()
- end if
- if MAN <> 0 then
- if MAN = TELE then
- set MAN to MAN
- end if
- if MAN = BUTGRID then
- REMOVEFLOORS()
- end if
- end if
- ANIMATEORACLE()
- if MAN = TELE then
- startTimer()
- set TTIME to the timer
- repeat while the timer < (TTIME + 30)
- end repeat
- if SOLUTIONFLAG = 0 then
- set the keyUpScript to "EEMPTY"
- RECORDSCORE()
- startTimer()
- set TTIME to the timer
- repeat while the timer < (TTIME + 30)
- end repeat
- end if
- set SOL to EMPTY
- set PUZZ to 0
- set SOLUTIONFLAG to 0
- go("PUZSOLV")
- end if
- if (OPT = 1) and (SOLUTIONFLAG = 0) then
- set OPT to 0
- go("OPTIONS")
- end if
- go(the frame)
- end
-