Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

如何多元素执行多动画

$
0
0

@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

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>