Please help about the thread sleep
Posted: Thu Aug 05, 2010 12:03 pm
I want to use the loadVars every 1 second,
like:
while(1)
{
loadVars("connect.dat","player");
sleep(1000);
}
but there is no function like sleep in GE , and I don't want to
use the Timer ,because I have a lot of codes want to loadVars like this.
Is there any function like the sleep to implements it?
like:
while(1)
{
loadVars("connect.dat","player");
sleep(1000);
}
but there is no function like sleep in GE , and I don't want to
use the Timer ,because I have a lot of codes want to loadVars like this.
Is there any function like the sleep to implements it?