Hello Guest

Author Topic: Animation Speed  (Read 4045 times)

Dipanker

  • Newbie
  • *
  • Posts: 17
    • View Profile
Animation Speed
« on: October 10, 2013, 11:19:40 am »
Hi
  Can I increase the speed of animation? My game contain a sprite with Sprite Animator and set the animation play automatically, while in game play I want to increase the speed of animation when it hit collide with another object.
   Thank You.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Animation Speed
« Reply #1 on: October 10, 2013, 11:36:49 am »
use tk2dSpriteAnimator.ClipFps to modify the rate of the animation while its playing.
http://2dtoolkit.com/docs/latest/html/classtk2d_sprite_animator.html

Dipanker

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Animation Speed
« Reply #2 on: October 10, 2013, 03:09:03 pm »
hi unikronsoftware,
   Thanks for the reply now its working as I want.... :) :) :)