2D Toolkit Forum

2D Toolkit => Support => Topic started by: neo750a on May 24, 2013, 01:16:59 am

Title: About AnimationCompleted and AnimationEventTriggered
Post by: neo750a on May 24, 2013, 01:16:59 am
I would very much like an example using these methods or whatever these are(I forget the terminology).  I am using the 2.x version of 2dtoolkit.  I was trying to follow tutorials on the Documentation page but it seems out of date and I would like to learn more about the two methods I have just stated.  Thx in advance!
Title: Re: About AnimationCompleted and AnimationEventTriggered
Post by: unikronsoftware on May 24, 2013, 04:21:48 pm
As mentioned in the beta download page, docs weren't ready back when it was released.
It is now :)

http://unikronsoftware.com/2dtoolkit/docs/2.00/tutorial/scripting_a_sprite_animator.html
Title: Re: About AnimationCompleted and AnimationEventTriggered
Post by: Untoldent on July 04, 2013, 07:07:37 pm
i daresay that doc still isn't ready.  Why wouldn't you demonstrate in that code example how to extract the info, float and int values from the trigger, or maybe how to identify the name of the animation?

Is this accessible via 1.92?  When i use the code in the doc you linked, i get a "not found" error on 'tk2dSpriteAnimator'.  When i use the "Check for Updates" menu option, i get the "unable to check for updates" error.
Title: Re: About AnimationCompleted and AnimationEventTriggered
Post by: Untoldent on July 04, 2013, 07:11:19 pm
After some digging, i see your posts about upgrading and migration, and as i'm at the very end of this project, i don't want to upgrade right now.  Is the animation trigger feature usable in v1.92?
Title: Re: About AnimationCompleted and AnimationEventTriggered
Post by: unikronsoftware on July 05, 2013, 09:08:06 am
Yes. The 1.92 equivalents are
http://unikronsoftware.com/2dtoolkit/doc/1.92/html/classtk2d_animated_sprite.html#a41af58c02b3f0d6be70ac431fa9434a5
and
http://unikronsoftware.com/2dtoolkit/doc/1.92/html/classtk2d_animated_sprite.html#a86fe976b862346384ab81ba6d2fa5e09
Title: Re: About AnimationCompleted and AnimationEventTriggered
Post by: yo_milo on June 07, 2016, 10:25:44 pm
I cannot find how to use AnimationCompleted either... those links are dead.  :'(
Title: Re: About AnimationCompleted and AnimationEventTriggered
Post by: unikronsoftware on June 09, 2016, 11:09:54 pm
Those are ancient links from 2D Toolkit 1.92, We're on 2.6 now... The tk2dAnimatedSprite class doesn't exist any more, its been replaced by hte sprite animator.
http://2dtoolkit.com/docs/latest/html/classtk2d_sprite_animator.html