do something for 10 seconds

Blitz3D Forums/Blitz3D Programming/do something for 10 seconds

You need to post more code. Also, this condition will always be false in that code:

If jumbo = MilliSecs()+1000 Then


So nothing between the If/EndIf will ever get executed.

[edit] couple of other points from a closer look at that code.

First, are you assuming that a For/Next loop with 10,000 iterations will run for exactly ten seconds? It won't. It'll do it in a matter of milliseconds.

Second, jumbo=jumbo+1000 should probably go INSIDE the If/EndIf - not outside.

I'm really not quite sure what it is you're trying to achieve here...