Hello Guest

Author Topic: Frames, Frame Rate, and Clip time  (Read 3366 times)

matrix211v1

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Frames, Frame Rate, and Clip time
« on: January 06, 2015, 03:17:18 pm »
Hello All!

I need to get access to the Frames, Frame Rate and Clip time.  I do not need access to the "current" information, I need to get what you see in the editor, such as the attachment. 

Basically I want the Clip time to do a yield that will play the animation and at the end of the Clip Time, it will move on.

How do I get access to these properties?  Everything I have done seems to revolve around the "current" information (such as if there are 100 frames, it will say it's on frame 32) which is what I do not need.

This information is needed BEFORE the clip is played.

Thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Frames, Frame Rate, and Clip time
« Reply #1 on: January 06, 2015, 06:13:41 pm »
To get this you need to find the clip you're interested in.
Code: [Select]
tk2dSpriteAnimationClip clip = spriteAnimator.Library.GetClipByName("...");
the properties you've requested are directly available on the clip.