Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: giyomu on April 20, 2011, 04:37:57 AM

Title: Play Animation Finish event (when playing in reverse)
Post by: giyomu on April 20, 2011, 04:37:57 AM
Hello there , and thank Alex for your great and nice tool ( i am still learning it )

I have one question about a little issue I got today

here is the deal , I am firing animation to play when MouseDown event get called and then wait for the animation to finish before allowing a the MouseDown event to be active and fire next anim

work well when i play them in a forward manners , but when i play the animation in reverse, the FINISHED event on the play animation action get call instantly , before animation stop.

this doesn't act like that all time , sometimes I get the finish event called really when the anim end, but sometimes ( quite often ) not

looking in the script I see that you use ActionHelper class to define when an animation actually is finished but I could not look further in it

so any hint on what could cause that issue , or point me to something i could had forgot

thanks !

giyomu
Title: Re: Play Animation Finish event (when playing in reverse)
Post by: jeanfabre on April 20, 2011, 05:51:24 AM
Hi,

 I ran into this as well, and I knew at the time I would need more flexibility then just playing forward and backward so I use instead SetAnimationTime and animate myself a value from 0 to 1 the way I want, it works very well and gives you total control without any issues.

 I use a combination of floatAdd, floatClamp and floatCompare to achieve control and detection over the animation state evolution.

Maybe Alex or someone  actually knows about your issue and has a proper fix or work around.

 Bye,

 Jean
Title: Re: Play Animation Finish event (when playing in reverse)
Post by: giyomu on April 20, 2011, 05:57:50 AM
thanks jean, you seem to be the playmaker "dreamora" alike person  ;D

Ok well I will see eventually to follow along what you explain to me , by the time, yes maybe alex may come up with a fix to this

thank you for your quick reply, really appreciate !