物体不能移动

  • Creator 版本: 2.4.7

  • 目标平台:

  • 重现方式:

  • 首个报错:
    没报错。不能动

  • 之前哪个版本是正常的:

  • 手机型号:

  • 手机浏览器:

  • 编辑器操作系统:

  • 重现概率:

cc.tween(this.Bird)
    .call(function(){
        for(let i=0;i<=360;i++){
            console.log(i)
            x=140*Math.cos(i*Math.PI/180)
            y=140*Math.sin(i*Math.PI/180)
            console.log(x,y)
            // cc.tween(this.Bird)
            // .to(5/360,{position:cc.v2(x,y)}).start()
        }
    }).start()

? 这样写不会报错吗

要不参考下官方写的这个例子 ?
使用缓动系统 · 并行执行缓动 · Cocos Creator 2.4

let t = cc.tween;
t(this.node)
    // 同时执行两个 cc.tween
    .parallel(
        t().to(1, { scale: 2 }),
        t().to(2, { position: cc.v2(100, 100) })
    )
    .call(() => {
        console.log('All tweens finished.')
    })
    .start()