I have a student that is trying to add a timer to his game. He would like to game to end after a minute. We have tried several things however, each one creates another problem such as score not showing or backgrounds not changing when the score reaches 50. I realize his function has the world.seconds at 1 and he did have it at 60 but the bell rang and he didn’t have a chance to put it back to 60. What are we doing wrong? Is it the order of things, the functions???
I added this line of code into the draw loop and got count to count up in seconds.
We are now updating count every time we go through the draw loop.
count = World.seconds ;
Now count will update with the number of seconds.
Let us know how it goes!