Wait() : How do I pause execution for x seconds ?

BlitzMax Forums/BlitzMax Beginners Area/Wait() : How do I pause execution for x seconds ?

I'm wondering how I would go around pausing my code for x seconds.I used a counter until x = y but it's not a measure of time.

I'm looking for something like this...
do routine
wait (5 seconds)
do another routine
wait (2 seconds)

Thanks in advance.

This is what you want...
Delay 1000    ' delay program execution for 1 second


oh, cool . Thanks mate.

Graphics 800,600,0 'set gfx mode
DrawText "asd",30,100
Delay 2000
DrawText "Vasd",100,230
Delay 2000

this doesn't appear to work for me :(

You need to Flip the backbuffer to draw anything to the screen...

Graphics 800,600,0
DrawText "asd",30,100
Flip
Delay 2000
DrawText "Vasd",100,230
Flip
Delay 2000


doh, thanks again Stuart