2D Toolkit Forum

2D Toolkit => Support => Topic started by: negative_zero on December 11, 2020, 02:45:27 am

Title: Is there a way to change the speed of an animation in code?
Post by: negative_zero on December 11, 2020, 02:45:27 am
I've been trying this, but it doesn't change anything?

gameObject.GetComponent<tk2dSpriteAnimator> ().ClipFps = 12.0f;

No matter what I do, whenever I read the variable it just returns -1.