2D Toolkit Forum

2D Toolkit => Support => Topic started by: turkerkarahan@yahoo.com on September 26, 2013, 01:13:23 am

Title: Change Animation Frame Rate or Time via Code
Post by: turkerkarahan@yahoo.com on September 26, 2013, 01:13:23 am
Hello,

How can i change animation frame rate or time via code so i can change playing speed of my animation dynamically?

Thanks for your answers.
Title: Re: Change Animation Frame Rate or Time via Code
Post by: unikronsoftware on September 26, 2013, 12:16:58 pm
You can use tk2dSpriteAnimator.ClipFps (http://unikronsoftware.com/2dtoolkit/doc/2.20/html/classtk2d_sprite_animator.html#ad5f3b8cb62b9a112c78c9f557a174efb) to control the frame rate dynamically.
Title: Re: Change Animation Frame Rate or Time via Code
Post by: turkerkarahan@yahoo.com on September 26, 2013, 01:17:46 pm
Thanks a lot :)