Re: time loop
- Posted by "Wallace B. Riley" <wryly at MINDSPRING.COM> Nov 22, 1997
- 616 views
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