home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Flight + Action
/
FlightAction.img
/
mrmore
/
tonline
/
50.dir
/
00028_Script_28
< prev
next >
Wrap
Text File
|
1996-02-19
|
2KB
|
61 lines
-- TimeOut-Checker
on CheckTeleTime
global gbTeleAuto, gbNoBreak
if gbTeleAuto then -- ******************* ist self-running aktiv?
global gnTeleAutoFrame, gnLastAutoTime, glTeleAutoFrames, glTeleAutoDirs, glTeleAutoSounds
global gbAnimFinished
if the mouseDown then -- Abbruch ??
EndAutoSequence()
exit
end if
if the timer > gnLastAutoTime + 60 * 2 AND gbAnimFinished then -- *********** zum nèchsten ???
set nFrames = count(glTeleAutoSounds)
set nNextSound = gnTeleAutoFrame + 1
if nNextSound > nFrames then set nNextSound = nFrames
set sSound = GetAt(glTeleAutoSounds, nNextSound)
if not soundBusy(1) OR sSound = "" then -- ****** Wenn Ton zu Ende oder nèchste Seite kein Sound
cursor 4
set gnTeleAutoFrame = gnTeleAutoFrame + 1
if gnTeleAutoFrame > count(glTeleAutoFrames) then
set gbNoBreak = false
EndAutoSequence()
exit
end if
set sFrame = GetAt(glTeleAutoFrames, gnTeleAutoFrame)
set sMovie = GetAt(glTeleAutoDirs, gnTeleAutoFrame)
set sSound = GetAt(glTeleAutoSounds, gnTeleAutoFrame)
go to frame sFrame of movie sMovie
updateStage
set gnLastAutoTime = the timer
set gbAnimFinished = false
if sSound <> "" then SafeSound(1, sSound)
cursor 0
end if
end if
else -- ********************************************** Self-Runner nicht aktiv
global gnLastRollTime, gnLastMouseH, gsThisFrame
if the mouseH <> gnLastMouseH then
set gnLastMouseH = the mouseH
set gnLastRollTime = the timer
else if the timer > (gnLastRollTime + 60*60) then
set gbNoBreak = false
set gbTeleAuto = true
go to movie "haupt.dir"
end if
end if
end