cocos2d-js: cc.delayTime() and cc.repeatForever() don't work together in cc.sequence()
1 this.numm = 100; //設置倒計時總數為100 2 3 var act = cc.sequence(cc.callFunc(function() { 4 5 //在這里面可自定義事件(在此我以倒計時為例) 6 7 this.numm --; 8 this.table_time.setString(this.numm);//賦值到標簽對象 9 if(this.numm <= -1){//加個判斷避免出錯 10 11 this.table_time.setString("0"); 12 13 } 14 }, this), cc.delayTime(1)); //延時一秒 15 this.runAction(cc.repeat(act, 100)); //重復動作,這里100為執行100次