Playmaker Forum
Bug Reporting => PlayMaker Bug Reporting => Topic started by: Murcho on April 30, 2011, 10:20:48 PM
-
So the Blend Animation action doesn't take the animation speed into consideration when firing the animation done event. It is however a quick fix, just replace the code here :
if (finishEvent != null)
delayedFinishEvent = new DelayedEvent(Fsm, finishEvent, anim.length);
with
if (finishEvent != null)
delayedFinishEvent = new DelayedEvent(Fsm, finishEvent, anim.length / anim.speed);
-
Actually looking at this action again, it seems like it should be based on the blend time:
delayedFinishEvent = new DelayedEvent(Fsm, finishEvent, time.Value);
The finish event doesn't really have anything to do with the animation length - it should trigger when the blend is finished.
-
Hmm.. considering the transition duration is actually affected by the current game speed (IIRC, it does) it really depends on what the designer/artist wants. In that case probably having the option would be best.