Can anyone help me create a stopwatch in corona? Something as simple as click the button, it starts counting, and then when you hit the button again, it stops counting.
Thanks!
Can anyone help me create a stopwatch in corona? Something as simple as click the button, it starts counting, and then when you hit the button again, it stops counting.
Thanks!
What do you have so far?
I’ve been trying to use this stopwatch plugin I found but it isn’t working
Is there a way you can you link the module so we can take a look and provide advice?
Have you looked at these tutorials?
https://coronalabs.com/blog/2015/04/28/tutorial-implementing-a-countdown-timer/
https://coronalabs.com/blog/2013/01/15/working-with-time-and-dates-in-corona/
https://coronalabs.com/blog/2013/05/29/wednesday-faqs-timers-and-events/
Also, have you looked at the source code for these Corona SDK Sample Code projects?
GettingStarted\Clock
GettingStarted\Timer
What stopwatch plugin?
No, I didn’t see these; Thanks!
I found this through Google: https://github.com/JesseInnovativeLeisure/CoronaGameCirclePluginSample/blob/master/Corona/stopwatch.lua
Stopwatch Plugin by Kyle Coburn
Will do when I get home!
We also have a sample app included with Corona SDK in the SampleCode/GettingStarted/Timer folder that will also help get you started with this. Note the sample app doesn’t count up in seconds, it runs faster. Look at the code to see why. No reason it couldn’t be adjusted to seconds.
What do you have so far?
I’ve been trying to use this stopwatch plugin I found but it isn’t working
Is there a way you can you link the module so we can take a look and provide advice?
Have you looked at these tutorials?
https://coronalabs.com/blog/2015/04/28/tutorial-implementing-a-countdown-timer/
https://coronalabs.com/blog/2013/01/15/working-with-time-and-dates-in-corona/
https://coronalabs.com/blog/2013/05/29/wednesday-faqs-timers-and-events/
Also, have you looked at the source code for these Corona SDK Sample Code projects?
GettingStarted\Clock
GettingStarted\Timer
What stopwatch plugin?
No, I didn’t see these; Thanks!
I found this through Google: https://github.com/JesseInnovativeLeisure/CoronaGameCirclePluginSample/blob/master/Corona/stopwatch.lua
Stopwatch Plugin by Kyle Coburn
Will do when I get home!
We also have a sample app included with Corona SDK in the SampleCode/GettingStarted/Timer folder that will also help get you started with this. Note the sample app doesn’t count up in seconds, it runs faster. Look at the code to see why. No reason it couldn’t be adjusted to seconds.