2D Toolkit Forum

2D Toolkit => Support => Topic started by: matrix211v1 on January 06, 2015, 03:17:18 pm

Title: Frames, Frame Rate, and Clip time
Post by: matrix211v1 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!
Title: Re: Frames, Frame Rate, and Clip time
Post by: unikronsoftware 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.