I´am trying to make a timer to my hangman game, and this is the code I´have.
[FONT="]timer = 0;[/FONT]
[FONT="]countup = function(){[/FONT]
[FONT="] timer++;[/FONT]
[FONT="]}[/FONT]
[FONT="]countupInterval = setInterval(countup,1000);[/FONT]
If i would like the timer to stop on a specific frame and show the time result how do I do that?
With some kind of if-else statement, or some kind of function.stop.
I´am totaly new to this.
Please help!