cocos2d-js: cc.delayTime() and cc.repeatForever() don't work together in cc.sequence()

简单如下:

var contacts = [];

for( var i=0 ; i<3 ; i++ ) {

contacts[i] = cc.DrawNode.create();

contacts[i].retain();

contacts[i].clear();

contacts[i].setScale(1);

contacts[i].drawCircle(cc.p(0,0), 30, 0, 100, false, 2, cc.color(255,0,0,255));

contacts[i].setPosition(size.width/2, size.height/2);

this.addChild(contacts[i]);

contacts[i].runAction(

cc.sequence(

cc.delayTime(i),

cc.repeatForever(

cc.sequence(

cc.scaleTo(3, 3),

cc.scaleTo(0.01, 0)

)

)

)

);

}

return true;


contacts[i].runAction(

cc.sequence(

cc.repeatForever(

cc.sequence(

cc.scaleTo(3, 3),

cc.scaleTo(0.01, 0)

)

)

)

);

你可能感兴趣的:(cocos2d-js: cc.delayTime() and cc.repeatForever() don't work together in cc.sequence())