Hello Guest

Author Topic: Change Animation Frame Rate or Time via Code  (Read 4479 times)

turkerkarahan@yahoo.com

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
  • Udo Games
    • View Profile
    • Udo Games
Change Animation Frame Rate or Time via Code
« 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.
« Last Edit: September 26, 2013, 01:38:09 am by turkerkarahan@yahoo.com »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Change Animation Frame Rate or Time via Code
« Reply #1 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.

turkerkarahan@yahoo.com

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
  • Udo Games
    • View Profile
    • Udo Games
Re: Change Animation Frame Rate or Time via Code
« Reply #2 on: September 26, 2013, 01:17:46 pm »
Thanks a lot :)