playMaker

Author Topic: Best way to know if an animation is playing? [solved]  (Read 2775 times)

pedroathumanspot

  • Playmaker Newbie
  • *
  • Posts: 11
Best way to know if an animation is playing? [solved]
« 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?

Cheers, and thanks in advance.
« Last Edit: January 23, 2013, 06:51:13 PM by pedroathumanspot »

pedroathumanspot

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Best way to know if an animation is playing?
« Reply #1 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.

pedroathumanspot

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Best way to know if an animation is playing?
« Reply #2 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.

Feel free to fork it away and collaborate. :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Best way to know if an animation is playing? [solved]
« Reply #3 on: January 24, 2013, 08:38:38 AM »
Hi,

 Nice one, that's the spirit!

bye,

 Jean