using timer to change levels

Blitz3D Forums/Blitz3D Programming/using timer to change levels

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You could try something along the lines of...

Graphics 800,600,0,2

global selectedBird=1 ; this is the variable you feed your case statement with
global startTime%=MilliSecs()

While Not Keydown(1) ; just a loop to test
   Cls
   If MilliSecs()>startTime+30000 then ; check for 30 second since we last changed.
      selectedBird=selectedBird+1
      if selectedBird>6 then selectedBird=1 ; loop back to 1 if we have reach the last bird
   endif
   Text 10,10,"Current Bird Is "+selectedBird
   Flip
Wend