home *** CD-ROM | disk | FTP | other *** search
- on PUTINCLOCK
- global EBALL1, EBALL2, EBALL3, EBALL4, E1CNT, E2CNT, E3CNT, E4CNT, EBALL1H, EBALL2H, EBALL3H, EBALL4H, EBALL1V, EBALL2V, EBALL3V, EBALL4V, EDR1, EDR2, EDR3, EDR4, LEVEL, TOTTICK, TICKIN, TICKIN1, HOLE, CLOCKCNT, STC, min, SEC, MINTXT, SECTXT, DELAYIT, FLAGCLOCK
- set SECTXT to EMPTY
- set MINTXT to EMPTY
- set DELAYIT to DELAYIT + 1
- if CLOCKCNT > 59 then
- set min to min + 1
- set CLOCKCNT to 0
- end if
- set TOTTICK to TOTTICK + 1
- if TOTTICK = TICKIN then
- MOVETELEPORT()
- end if
- if TOTTICK = (TICKIN + 10) then
- set the locH of sprite 7 to -2000
- set the locV of sprite 7 to -2000
- set HOLE to 0
- end if
- if TOTTICK = TICKIN1 then
- MOVETELEPORT()
- end if
- if TOTTICK = (TICKIN1 + 10) then
- set the locH of sprite 7 to -2000
- set the locV of sprite 7 to -2000
- set HOLE to 0
- end if
- if CLOCKCNT < 10 then
- set SECTXT to "0" & string(CLOCKCNT)
- end if
- if CLOCKCNT > 9 then
- set SECTXT to string(CLOCKCNT)
- end if
- set the text of cast "CLOCKTXT" to string(min) & ":" & SECTXT
- set FLAGCLOCK to 0
- if the text of cast "CLOCKTXT" = "0:30" then
- set FLAGCLOCK to 1
- end if
- if the text of cast "CLOCKTXT" = "0:59" then
- set FLAGCLOCK to 1
- end if
- if the text of cast "CLOCKTXT" = "1:30" then
- set FLAGCLOCK to 1
- end if
- if FLAGCLOCK = 0 then
- exit
- end if
- if (LEVEL = 4) and (the text of cast "CLOCKTXT" = "0:30") then
- exit
- end if
- if (LEVEL = 6) and (the text of cast "CLOCKTXT" = "0:30") then
- exit
- end if
- if FLAGCLOCK = 1 then
- if EBALL2 = 0 then
- set FLAGCLOCK to 2
- end if
- if (EBALL3 = 0) and (FLAGCLOCK = 1) then
- set FLAGCLOCK to 3
- end if
- if (EBALL4 = 0) and (FLAGCLOCK = 1) then
- set FLAGCLOCK to 4
- end if
- end if
- if FLAGCLOCK = 2 then
- set EBALL2 to EBALL1
- set EBALL2H to EBALL1H
- set EBALL2V to EBALL1V
- set E2CNT to E1CNT
- set EDR2 to EDR1
- end if
- if LEVEL > 2 then
- if FLAGCLOCK = 3 then
- set EBALL3 to EBALL1
- set EBALL3H to EBALL1H
- set EBALL3V to EBALL1V
- set E3CNT to E1CNT
- set EDR3 to EDR1
- end if
- end if
- if LEVEL > 4 then
- if FLAGCLOCK = 4 then
- set EBALL4 to EBALL1
- set EBALL4H to EBALL1H
- set EBALL4V to EBALL1V
- set E4CNT to E1CNT
- set EDR4 to EDR1
- end if
- end if
- end
-