View Single Post
  #9  
Old 07-18-2001, 01:48 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
heh, it's actually better in the long run....cuz if you want to add stuff to the script later you don't have to mess with sleeps. I ALWAYS used to use a while loop with sleeps in it, for about 3 months when I started scripting. Then I finally learned timeout and have used it ever since.

Sleep freezes the script, so nothing else can run. So say you wanted to have one script that moved things at different speeds. You couldn't do it with sleep (well, you could, but it'd be longer), but with timeout it's a simple matter of adding a counter and checking the value of the counter.
Reply With Quote