Creator Action cc.repeat有問題

簡單的測試Code

var testValue = 0; var action1 = cc.delayTime(0.05); var action2 = cc.callFunc(function() { testValue++; cc.log('testValue=' + testValue); }, this); this.node.runAction(cc.repeat(cc.sequence(action1, action2), 5));

當cc.repeat設定跑5次時 印出來4次 (錯誤)
當cc.repeat設定跑6次時 印出來6次 (正確)

有時後都會少了一次~~~讓我們常常在程式裡找不到為什麼

v1.2.2 ~ v1.3 beta都測試出來這樣的結果

麻煩大神處理 感謝

试试this.node.runAction(cc.sequence(action1, action2).repeat(5));

国庆过后我测试看看,你先参考楼上的用法试看看

his.node.runAction(ccsequence(action1, action2).repeat(5));

这样就对了!!
原来有把repeat放在后面的写法

不过cc.repeat应该是有问题的
感谢