游戏中的倒计时

      被人教程 2005-7-13 9:59
有人问我,我提出2中方法给他,现在贴出其中一种

//在舞台第一帧写上
time = 99;//动态文本框变量
function time2() {
    if (time == 0) {
        time = 0;
    } else {
        time --;
    }

if (length(time) == 1) {
        time = "0"+time;
    }
}
setInterval(time2, 1000);//要调节速度,请设定1000大小就可以
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}