xSleep Function by SunDawg21st Dec 2004 18:02
|
---|
Summary It waits without pausing the program Description A simple timer function that you can employ without pausing any aspect of your program Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com REM Insert at bottom of code and call with xSleep(TIME IN MILISECONDS) function xSleep(length) waited=timer() REM creates loop that repeats for time givin by user while timer() < waited+length REM if using this for a cinematic, keys can be assigned to break early if spacekey()=1 then exit endwhile endfunction |