To run with hyrichter's code...
sync on: sync rate 0
rem set backdrop to black
color backdrop 0
rem set ink to yellow on red
ink rgb(255,255,0),rgb(255,0,0)
set text opaque
rem set goal
TimeGoal = timer() + 300000
do
if timer() < TimeGoal
TimeLeft = TimeGoal - timer()
min = int(TimeLeft/60000)
sec = int((TimeLeft - (min*60000))/1000)
if sec < 10
text 2,2, "Time remaining: "+str$(min)+":0"+str$(sec)
else
text 2,2, "Time remaining: "+str$(min)+":"+str$(sec)
endif
rem do game stuff
else
text 2,2, "Time remaining: 0:00"
rem endlevel
endif
sync
loop
--
TAZ
[edit: This runs fine on my machine in DBP.]