循环的动作

cc.repeat(action, times)
cc.repeatForever(action)

例:
sprite.runAction(cc.repeatForever(cc.rotateBy(1,360)));
posted @ 2019-12-19 15:33  流星曳尾  阅读(86)  评论(0编辑  收藏  举报