Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: QueenM56 on June 19, 2018, 05:25:20 AM
-
Hi all,
My second post today...
I'm working on an animation controller of the player and come across an annoying problem. please see attached screenshot, it is my current set up.
The problem is, every time when the 'hit (being hit)' state is triggered, the animation always delays. sometimes, it plays when the player has run away from the attacking enemy.
I thought it has something to do with the 'exit time', but when I turn off the exit time, the animations are hardly be triggered.
Hopefully, someone could give me some advice on it.
Thanks,
M
-
Hi.
Can you show some more details?
It can be several things, maybe the condition is not set correctly or you need to (un)check Fixed duration.
Maybe the 'set animator' action gets delayed somehow
or the animation itself?
-
Hi djaydino,
Thanks for taking look at it.
Sure, I've attacked another 2 screenshot, which is the inspector of 'hit' state.
Please see if you can tell any problem.
You mentioned 'fixed duration'...could you please give an example in what situation I should (un)check the fixed duration?
cheers,
M
-
Hi,
Try disable Fixed Duration and set the Transition Duration to 0
also disable Has Exit time.
You might need to do this on all transitions.
After that you can start tweaking them if needed.
Before you do, make a backup from your project just to be sure.
-
Thanks djaydino,
I made changes as you suggested and added a bool value for die state.
Now everything works fine.
Cheers,
M