Play animation in reverse order?

Play animation in reverse order?
0.0 0

#1

How do i play an animation in reverse order? someone out there?


#2

You could try using the Action cocos2d::ReverseTime

" Use this action carefully. This action is not
sequenceable. Use it as the default “reversed” method
of your own actions, but using it outside the “reversed”
scope is not recommended."


#3

@almax27 thanks…
but i already figured out the answer…

var animState = this.animComponent.play(clip);
animState.wrapMode = cc.WrapMode.Reverse; 

thanks anyway :wink:


#4

It helped thanks. Inline works also.
this.animComponent.play(clip).wrapMode = cc.WrapMode.Reverse;