Search found 1 match
- Thu Sep 07, 2017 7:26 pm
- Forum: Support and Development
- Topic: [solved]Is there a way to sleep/wait without freezing window?
- Replies: 6
- Views: 6439
Re: [solved]Is there a way to sleep/wait without freezing window?
Since a sleep function usually take sleep duration (miliseconds or seconds) as arguments, a way to do it, just "sleeping" the update callback with a timer, is: local sleepTimer = 0 function setSleep(duration) --call setSleep(2) to "sleep" update for 2 seconds sleepTimer = duratio...