Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Is there a way to change the speed of an animation in code?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is there a way to change the speed of an animation in code? (Read 30978 times)
negative_zero
Newbie
Posts: 10
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.
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Is there a way to change the speed of an animation in code?