Re: time loop

new topic     » goto parent     » topic index » view thread      » older message » newer message

At 01:33 PM 11/22/97 -0500, you wrote:
>Hi, does anyone know what I can put in my game's major loop, so that if a
>certain time hasn't passed, the game will wait?
>
>(Thus controlling the speed of the game through different situations and
>different computers)
>
>Set a variable equal to time().  Then later if time() - variable is less
than the interval you wanted, loop back until it isn't 'less than' any more.
That would be something like 'while time() - variable < interval do' twiddle
thumbs 'end while'

Wally Riley
wryly at mindspring.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu