let rotate = cc.tween().to(0.15, { angle: 1 })
let rotate1 = cc.tween().to(0.15, { angle: -1 })
this.rotate2 = cc.tween().then(rotate).then(rotate1)
this.action = cc.tween(this.node).then(rotate2).repeatForever()
.start()
重复执行一个动作,需要在特定的时候停止这个动作,试着调用过stopAction(this.action), 或者stopAction( this.rotate2 )都没有效果
只想停止这一个动作。并不想全部停止
求大佬说说,最好附上代码 谢谢
this.action.stop()吧
1赞