【怎么让一个动画正反向随意播放】

this.getComponent(cc.Animation).currentClip.wrapMode = cc.WrapMode.Reverse;
this.getComponent(cc.Animation).play();
这个不行。。

直接贴代码了

        var anim = this.node.getComponent(cc.Animation);
        var clips = anim.getClips();
        var animState = this.anim.play();
        animState.wrapMode = cc.WrapMode.Loop;
1赞

如果楼主说的方式不管用算不算cocos的问题