I want a game to play for a set amount of time, say 2 minutes, and then display the scores to the user when the timer runs out. Below is the code.
I used three clocks. gameEndInterval clock is not working as I want. I want it to monitor the time the user will spend playing the game.
This is a perfect opportunity for me to introduce the latest addition to my collection of defensive programming metaphors, entitled Never Enough Suspenders:
Well, 1 Minute does have 60 seconds and 2 minutes do have 120 seconds...
As you are counting manually the seconds in the timer Event you also can set the timer interval to 120000 and remove the if statement to get the same result
Please, help me get this to display on the screen Taifun answered the question on how to get it to work here Clock isn't working. I have tried all I can but I have been having issue on how to display it.
If you check this link to the previous question Clock isn't working. I have tried all I can, i was able to code the timer for the app but I am having on how to display it on the app.