simple delaying a piece of code in a loop by Mussi14th Oct 2003 6:33
|
---|
Summary delaying a piece of code in a loop Description Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com `simple delaying a piece of code in a loop `delay in miliseconds so 1000 is 1 second delay=1000 totaltime as integer totaltime = timer() + delay do `this prints "yo" each second if timer() = totaltime print "yo" totaltime = totaltime + delay endif `you can have the rest of your code here without delaying them ( or right under the "do" if you want) loop |