Hi i’ve got my code that at the moment creates a timer that appears on the stage when called apon starting at 0:00 and going upwards. But what I want to happen is that I want it to start on 1:30 and countdown to 0:00 at which point I want it to go to frame label ‘winner’. Can someone take a look at my code and sort it out for me please?
public function showTime(event:Event) {
gameTime = getTimer()-gameStartTime;
gameTimeField.text = clockTime(gameTime);
}
public function clockTime(ms:int)
{
var seconds:int = Math.floor(ms/1000);
var minutes:int = Math.floor(seconds/60);
var timeString:String = seconds/60+":"+ (seconds%60);
return timeString;}
}