I’ve done extensive Googling and I can’t find any sleep or wait function that works. How would one make a script so that it would wait 10 seconds and then do something?
Hi @gabe8,
Can you be more specific about this? Do you want the Corona app to wait 10 seconds before doing something?
Brent
local function doit() print("Hi. I waited 10 seconds" ) end timer.performWithDelay( 10000, doit )
You can also write co-routines, start them, suspend them, and wake them later.
Hi @gabe8,
Can you be more specific about this? Do you want the Corona app to wait 10 seconds before doing something?
Brent
local function doit() print("Hi. I waited 10 seconds" ) end timer.performWithDelay( 10000, doit )
You can also write co-routines, start them, suspend them, and wake them later.