@Holmes 写道:
如题所述:
这样只能执行最后一个元素的动画 ,求解惑
addGriddleAction:function(){
var size = cc.Director.getInstance().getWinSize();
var positionTem = cc.p(size.width / 2,size.height / 2);
var griddleAction = cc.MoveTo.create(4,positionTem);
this.GriddleLis[0].runAction(griddleAction);
this.GriddleLis[1].runAction(griddleAction);
this.GriddleLis[2].runAction(griddleAction);
this.GriddleLis[3].runAction(griddleAction);
this.GriddleLis[4].runAction(griddleAction);
this.GriddleLis[5].runAction(griddleAction);
},
帖子: 3
参与者: 1