2D Toolkit Forum

2D Toolkit => Support => Topic started by: fsadeq on December 10, 2012, 10:14:42 pm

Title: Possible to change the animation library of a tk2dAnimatedSprite during runtime?
Post by: fsadeq on December 10, 2012, 10:14:42 pm
Was wondering if this is possible? I haven't been able to figure out a way.
Title: Re: Possible to change the animation library of a tk2dAnimatedSprite during runtime?
Post by: fsadeq on December 10, 2012, 11:34:19 pm
Nevermind, not sure how I missed the anim property on tk2dAnimatedSprite.
Title: Re: Possible to change the animation library of a tk2dAnimatedSprite during runtime?
Post by: unikronsoftware on December 11, 2012, 01:10:29 am
I'm trying to move away from using libraries - rather play animation clips directly instead. You can already get a clip from a library and call

Play(clip)
instead of
spr.anim = library; Play("something");

Future versions will emphasise on this a lot more, as its much easier to do stuff like this:
Play(clip.reverse);
or
Play(clip.ScaleFPS(5.0f));