How to make a bonus countdown function ? How to keep countdown when the app is closed ?
A quick search on google.com for _ corona tutorial countdown timer _ reveals quite a few forum posts and tutorials on how to do this including our own:
https://coronalabs.com/blog/2015/04/28/tutorial-implementing-a-countdown-timer/
The question about how to preserve it when the app suspends has been answered quite a few times as well. You can use the search box at the top of this window or google.com to find posts. I would suggest starting there. You will need to use the “system” event handler to detect when your app suspends, pause your timer and then resume it when the app restarts.
Rob
A quick search on google.com for _ corona tutorial countdown timer _ reveals quite a few forum posts and tutorials on how to do this including our own:
https://coronalabs.com/blog/2015/04/28/tutorial-implementing-a-countdown-timer/
The question about how to preserve it when the app suspends has been answered quite a few times as well. You can use the search box at the top of this window or google.com to find posts. I would suggest starting there. You will need to use the “system” event handler to detect when your app suspends, pause your timer and then resume it when the app restarts.
Rob