2.32中把tween对象存为常量 重复缓动有点问题

这是demo
NewProject.rar (161.0 KB)

const { ccclass, property } = cc._decorator;
const TWEEN = cc.tween().by(0.5, { angle: 180 })
@ccclass
export default class NewClass extends cc.Component {
onLoad() {

    //这是正常的
    for (let i = 0; i < this.node.getChildByName('1').childrenCount; i++) {
        let _node = this.node.getChildByName('1').children[i]

        **let t = cc.tween().by(0.5, { angle: 180 })**
        **cc.tween(_node).repeatForever(t).start()**
    }

    //这是不正常的
    for (let i = 0; i < this.node.getChildByName('2').childrenCount; i++) {
        let _node = this.node.getChildByName('2').children[i]
        **cc.tween(_node).repeatForever(TWEEN).start()**
    }
}

}

做下 clone 操作就好了
TWEEN.clone()

好的 解决了

改为cc.tween(_node).then(TWEEN.clone(_node)).start()就行了