home *** CD-ROM | disk | FTP | other *** search
- global TotalPoints, QuestionsAsked, QuestionAnswered, gIsPaused_flag, gxronos, gMaxTime, gKrataTime, gMiaw_flag, thequit, gPauseAllowed
-
- on exitFrame
- if not gIsPaused_flag then
- if not gMiaw_flag then
- gPauseAllowed = 1
- if QuestionsAsked = 0 then
- StartTimerClockIsTicking()
- end if
- if QuestionAnswered then
- StartTimerClockIsTicking()
- else
- gxronos = gMaxTime - (the timer / 60) - gKrataTime
- if (gxronos <= 0) and not QuestionAnswered then
- GoToNextQuestion()
- end if
- end if
- member("TimeRemains").text = string(gxronos)
- end if
- end if
- CheckSound()
- if thequit then
- go(1, "exitMov")
- end if
- go(the frame)
- end
-
- on StartTimerClockIsTicking
- startTimer()
- end
-
- on GoToNextQuestion
- gKrataTime = 0
- StartTimerClockIsTicking()
- sendAllSprites(#OpenDB)
- sendAllSprites(#LoadCurrentQuestion)
- sendAllSprites(#closeDB)
- end
-