home *** CD-ROM | disk | FTP | other *** search
- global gTime_spr, gxronos, gtimeFlag, gLepta, gxronos_flag, gKrataTime, gPoints, gExtraTime, gWrongClick_flag, gTelos_flag, gTimeLimit, gMaxTime, gIsPaused_flag, gLevelsVisibility_flag, perase, gMiaw_flag, gPauseAllowed, thequit
-
- on enterFrame me
- changeTime(me, gTimeLimit)
- checkIfEndTime(me, gTimeLimit)
- time_Flag = gxronos mod 2
- if time_Flag = 1 then
- if perase = 1 then
- initShowPoints()
- perase = 0
- end if
- else
- perase = 1
- end if
- end
-
- on exitFrame
- gLevelsVisibility_flag = 0
- CheckSound()
- if thequit then
- go(1, "exitMov")
- end if
- go(the frame)
- end
-
- on initShowPoints
- gPoints = gPoints - 10
- member("PointsText").text = string(gPoints)
- end
-
- on checkIfEndTime me, timeLimit
- if gxronos <= timeLimit then
- gxronos = timeLimit
- telos()
- end if
- end
-
- on changeTime me, timeLimit
- if not gMiaw_flag and (gTelos_flag = 0) then
- gPauseAllowed = 1
- if gxronos_flag = 1 then
- startTimer()
- gxronos_flag = 0
- end if
- if sprite(gTime_spr).visible = 0 then
- gtimeFlag = 0
- gLepta = 0
- else
- gxronos = gMaxTime - (the timer / 60) - gKrataTime - gExtraTime
- end if
- if gxronos >= 0 then
- sprite(gTime_spr).member.text = string(gxronos)
- else
- sprite(gTime_spr).member.text = "0"
- end if
- updateStage()
- end if
- end
-