Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: pedroathumanspot on January 18, 2013, 06:33:04 AM

Title: Best way to know if an animation is playing? [solved]
Post by: pedroathumanspot on January 18, 2013, 06:33:04 AM
Hi there!

I need to check if a particular animation is playing while on a particular state.

What's the best way to do this? Is there some way/action that mimics the IsPlaying function of the Animation component (http://docs.unity3d.com/Documentation/ScriptReference/Animation.IsPlaying.html)?

Cheers, and thanks in advance.
Title: Re: Best way to know if an animation is playing?
Post by: pedroathumanspot on January 23, 2013, 08:53:34 AM
I ended up coding an custom IsAnimationPlaying to do this. I'll post a link for it here asap.

Cheers.
Title: Re: Best way to know if an animation is playing?
Post by: pedroathumanspot on January 23, 2013, 06:50:33 PM
I coded this particular action and made it available under a GitHub repository I set up to share custom Playmaker actions at https://github.com/pedrosanta/PlaymakerActions (https://github.com/pedrosanta/PlaymakerActions).

Feel free to fork it away and collaborate. :)
Title: Re: Best way to know if an animation is playing? [solved]
Post by: jeanfabre on January 24, 2013, 08:38:38 AM
Hi,

 Nice one, that's the spirit!

bye,

 Jean