cocos2d-js: cc.delayTime() and cc.repeatForever() don't work together in cc.sequence()
this.numm = 100; //设置倒计时总数为100 var act = cc.sequence(cc.callFunc(function() { //在这里面可自定义事件(在此我以倒计时为例) this.numm --;
this.table_time.setString(this.numm);//赋值到标签对象
if(this.numm <= -1){//加个判断避免出错 this.table_time.setString("0"); }
}, this), cc.delayTime(1)); //延时一秒
this.runAction(cc.repeat(act, 100)); //重复动作,这里100为执行100次