I'm creating a game, and i would like to add a timer in the top of the game screen, so once the game starts, the timer will run, and keep running untill the player reach the end of the game, then it will stop. Any hints or a peace of code will be very appreciated.
Thanks for the answer, but what if i want to keep showing the time during the game play. basically i want to add the time on the top of a sudoku puzzle, so once the player start playing the game, the timer will be displayed on top of the Sudoku board, and will stay there all the periode of playing (the time will keep increasing) then once the puzzle is solved completely, the time will stop in the last value. How to do that? Thanks.