How do I insert a timer into my game and when the game loses it says game over and displays and saves it?
Do you mean that it saves the amount of time that it took for the player to die?
Also, in order to create a timer, you will need a variable, create a function that updates it every second and checks whether it has reached a minute.
Read more about this here:
https://docs.coronalabs.com/api/library/display/newText.html
https://coronalabs.com/blog/2015/04/28/tutorial-implementing-a-countdown-timer/
These posts asking how to do relatively simple things are getting frustrating. Nothing that you couldn’t find out by reading the API’s or googling ‘corona timer’. You’re basically saying “I’m in a hurry, I can’t be bothered to learn the basics of coding so someone else do the research”.
I’m speaking as someone who five years ago knew nothing about lua or Corona, and learnt through studying and playing around with examples, the API docs, googling the Corona forums and good old fashioned trial and error. What I didn’t do was create a new topic for everything I wanted in my game that I didn’t yet know how to do without exploring every available option to find out for myself first…
Do you mean that it saves the amount of time that it took for the player to die?
Also, in order to create a timer, you will need a variable, create a function that updates it every second and checks whether it has reached a minute.
Read more about this here:
https://docs.coronalabs.com/api/library/display/newText.html
https://coronalabs.com/blog/2015/04/28/tutorial-implementing-a-countdown-timer/
These posts asking how to do relatively simple things are getting frustrating. Nothing that you couldn’t find out by reading the API’s or googling ‘corona timer’. You’re basically saying “I’m in a hurry, I can’t be bothered to learn the basics of coding so someone else do the research”.
I’m speaking as someone who five years ago knew nothing about lua or Corona, and learnt through studying and playing around with examples, the API docs, googling the Corona forums and good old fashioned trial and error. What I didn’t do was create a new topic for everything I wanted in my game that I didn’t yet know how to do without exploring every available option to find out for myself first…