Cocos2d-html5 3.16 issue set Color and cc.Animation Canvas render


Hello Mates, I found a weird behaviour with animation,
first i set “debugMode” : 1, (so should be using canvas mode render), then i run a simple animation into a sprite:

        var aAnimationFrames = [];
        for (var i = 1; i <= 7; i++) {
            var seqStr = "tail_";
            var str = seqStr + i + ".png";
            var frame = cc.spriteFrameCache.getSpriteFrame(str);

        var cAnimations = new cc.Animation(aAnimationFrames, 0.05, 10);
        var animate = cc.repeatForever (new cc.Animate(cAnimations));

and the animation doesn’t work, if i comment setColor out it works, and also works if i set OPENGL render mode.

any thoughts guys?


most likely bug in your code.

move this.setColor one line down. Works now?


Nope, it doesn’t work.
any other idea?
oh! i forgot to tell you, that the error began when i upgrade cocos2d-html5 v3.8 to v3.16