1
我已将setInterval设置为10秒。而且它在我的游戏中工作得很好,它从10秒倒数,当它达到0时改变场景。Actionscript 2 Setinterval将毫秒添加到计时器
问题是我真的需要显示毫秒数,而我不知道如何将它添加到反击......它应该很难,但我真的不知道。
下面是脚本:
timer = 10;
clearInterval(countdownInterval);
countdown = function(){
timer--;
if (timer ==0){
gotoAndPlay("Scene 1",2);
}
}
countdownInterval = setInterval(countdown,1000);