End Message at the end of countdown timer
Hi!
I'm making a game on animate for uni. I was wondering within HTML 5 canvas after my timer finishes the 90 seconds, show an end game frame that I have made already.
var secondsLeft = 90;
this.countdown_txteasy.text = secondsLeft;
var timerId = setInterval(countdown.bind(this), 1000);
function countdown(){
if(secondsLeft == 0){
}
else{
secondsLeft--;
this.countdown_txteasy.text = secondsLeft;
}
}
That is what I have for my timer and would want a message after the 90 seconds.
