home *** CD-ROM | disk | FTP | other *** search
- on REMOVEFLOORS
- global GRIDX, GRIDY, GRIDVAL, BUTGRID, BG, DT, HEAD, MAN, TEMBUTGRID
- set BG to 0
- setAt(GRIDVAL, BUTGRID, 1)
- puppetSound("BUTTON.WAV")
- set DT to 5
- COUNTTIME()
- set DT to 1
- set BUTGRID to 1000
- set the trails of sprite 12 to 0
- repeat with n = 1 to 168
- if getAt(GRIDVAL, n) = 5 then
- ANIMATEORACLE()
- set the locH of sprite 12 to getAt(GRIDX, n)
- set the locV of sprite 12 to getAt(GRIDY, n)
- setAt(GRIDVAL, n, 0)
- updateStage()
- set the locH of sprite 12 to -2000
- set the locV of sprite 12 to -2000
- updateStage()
- end if
- end repeat
- set the trails of sprite 12 to 1
- set the trails of sprite 11 to 1
- updateStage()
- set DT to 1
- repeat with n = 154 down to 1
- if (getAt(GRIDVAL, n) = 2) and (getAt(GRIDVAL, n + 14) = 0) then
- ANIMATEORACLE()
- set the trails of sprite 11 to 0
- set BG to n
- setAt(GRIDVAL, n, 0)
- set the locH of sprite 11 to getAt(GRIDX, n)
- set the locV of sprite 11 to getAt(GRIDY, n)
- updateStage()
- repeat while getAt(GRIDVAL, BG + 14) = 0
- repeat with M = 1 to 4
- set the locV of sprite 11 to getAt(GRIDY, BG) + (M * 8)
- updateStage()
- COUNTTIME()
- end repeat
- set BG to BG + 14
- set the locV of sprite 11 to getAt(GRIDY, BG)
- updateStage()
- if BG > 154 then
- exit repeat
- end if
- end repeat
- puppetSound("DROPROCK.WAV")
- setAt(GRIDVAL, BG, 2)
- ANIMATEORACLE()
- set the trails of sprite 11 to 1
- set the locV of sprite 11 to getAt(GRIDY, BG)
- updateStage()
- set the locH of sprite 11 to -2000
- set the locV of sprite 11 to -2000
- updateStage()
- end if
- end repeat
- set the trails of sprite 11 to 0
- if HEAD = 1 then
- set the locH of sprite 11 to getAt(GRIDX, MAN - 14)
- set the locV of sprite 11 to getAt(GRIDY, MAN - 14)
- end if
- set the locH of sprite 8 to -2000
- set the locV of sprite 8 to -2000
- updateStage()
- end
-