2D Toolkit Forum
2D Toolkit => Support => Topic started by: Follow Me on December 18, 2013, 11:51:44 pm
-
Hello Everyone
The Ping Pong animation isn't working for me in version 2.3.3, unity 4.3.1, if you set the animation to Ping Pong it doesn't play.
Has anyone encountered this problem and found a solution?
Thanks in advance.
-
Hi,
Apologies, this is a bug caused by a typo when merging some code.
You can fix it by changing tk2dSpriteAnimator.cs, line 633 to:
int currFrame = (currentClip.frames.Length > 1) ? ((int)clipTime % (currentClip.frames.Length + currentClip.frames.Length - 2)) : 0;
-
This solved the problem, thanks a lot!!!