Hello Guest

Author Topic: Is there a way to change the speed of an animation in code?  (Read 20708 times)

negative_zero

  • Newbie
  • *
  • Posts: 10
    • View Profile
Is there a way to change the speed of an animation in code?
« 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.