playMaker

Author Topic: How to solve animation delay[SOLVED]  (Read 1647 times)

QueenM56

  • Junior Playmaker
  • **
  • Posts: 55
How to solve animation delay[SOLVED]
« 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
« Last Edit: June 22, 2018, 03:37:42 AM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: How to solve animation delay
« Reply #1 on: June 20, 2018, 04:00:20 AM »
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?


QueenM56

  • Junior Playmaker
  • **
  • Posts: 55
Re: How to solve animation delay
« Reply #2 on: June 20, 2018, 11:07:14 PM »
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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: How to solve animation delay
« Reply #3 on: June 21, 2018, 05:02:33 AM »
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.


QueenM56

  • Junior Playmaker
  • **
  • Posts: 55
Re: How to solve animation delay
« Reply #4 on: June 21, 2018, 10:58:48 PM »
Thanks djaydino,

I made changes as you suggested and added a bool value for die state.
Now everything works fine.

Cheers,
M