cc.Tween repeatForever bug?

cc.Tween repeatForever bug?
0

Hi, we have a trouble with cc.tween repeatForever… this is our code

    this.tween = null;
    if(this.steps.length > 0) {
        this.tween = cc.tween(this.node);
        for(var i = 0; i < this.steps.length; i++) {
            var step = this.steps[i];
            this.tween = this.tween.to(step.time, {position: cc.v2(this.node.x + step.pos.x, this.node.y + step.pos.y)});
        }

        if(this.stepsLoop) {
            this.tween = this.tween.repeatForever();
        }

        this.tween = this.tween.start();
    }

the tween don’t start when we set as loop (so a bug inside repeatForever?)
in console we have this:
[Action update]. override me
any idea?
Many regards,
Stefano

we have resolved in this mode… but is not a solution :smiley:

        this.tween = cc.tween(this.node);
        var tween = cc.tween(this.tween);
        for(var i = 0; i < this.steps.length; i++) {
            var step = this.steps[i];
            tween = tween.to(step.time, {position: cc.v2(this.node.x + step.pos.x, this.node.y + step.pos.y)});
        }
        this.tween.repeat(9999999999, tween).start()

Cheers,
Stefano