Cocos Creator2.0.10版本cc.tween不能正常应用

            let time;
            time = Math.abs(d.hand.to.x - d.hand.start.x) / 100;
            hand.x = d.hand.start.x;
            hand.y = d.hand.start.y;
            cc.tween(hand)
                .to(time,{x:d.hand.to.x,y:d.hand.to.y})
                .delay(1)
                .call(function () {
                    hand.x = d.hand.start.x;
                    hand.y = d.hand.start.y;
                })
                .repeatForever()
                .start();

2.0.9版本正常使用, 2.0.10版本一直提醒[Action update]. override me

hand.runAction(cc.repeatForever(cc.sequence(cc.moveTo(time,{x:d.hand.to.x,y:d.hand.to.y}),cc.delayTime(1),cc.callFunc(function () {
hand.x = d.hand.start.x;
hand.y = d.hand.start.y;
}))));

其实就是手势提示的动作, 用原来的办法就是上面的代码, 但是整个工程很多都是cc.tween, 又不确定其他的代码有没有问题,难受啊.:joy:

我找到了一个办法 希望帮到你
除了要引入

export function tween(target: any): Tween;

版本 Cocos Creator v2.1.2

具体缓动的选择 可以这样选择 好多 问题下面 没有写的那么详细,我经过摸索 搞定

第一个

this.node.scale = 0.5;
this.effectTween = cc.tween(this.node).to(0.3,{scaleX:1.0,scaleY:1.0},{progress:null,easing:cc.easing.backInOut}).start();

第二种

this.node.scale = 0.5;
this.effectTween = cc.tween(this.node).to(0.3,{scaleX:1.0,scaleY:1.0},{progress:null,easing:“backInOut”}).start();