Would appreciate help with a student’s issue with timer and adding time to the timer as a result of collecting a sprite in the game. Thank you so much!
What a great game!
You were on the right track by using the time2 variable. The variable just needs to be used to set the initial time so when it is updated when the player touches the star, the timer is also updated.
So, on line 43, update time2 = 60. Then, on line 296, make sure to use the time2 variable in the timer: time = time2 - World.seconds;
Finally, on line 76, when the player is touching the star, time2=130.