#"Player_Hurt" animation not working

12 messages · Page 1 of 1 (latest)

bright basalt
stable dome
#

As far as I see there is no transition in animator to go Player_Hurt animation? @bright basalt

bright basalt
#

But as you can see, if I remove that part of code, the animation plays again, even if the character is invincible @stable dome

stable dome
#

Only thing comes to my mind is after collision you call the take damage. Take damage calls flashing and invulnerable methods so you are making the player instantly invulnerable
private IEnumerator BecomeInvulnerable()
{
isInvulnerable = true;
}
so can I ask u to make a log inside of the
if (!playerHealth.IsInvulnerable())
{
// Handle fireball collision with player
animator.Play("Player_Hurt"); // Plays the "Player_Hurt" animation
***Debug.Log("Hereee?");
}

bright basalt
stable dome
#

Ohh, I didn't know that either

bright basalt
#

😅

bright basalt
stable dome
#

No, I'm new too. I'm happy you solved it ^^

bright basalt
#

😊

pearl hazel
#

the position of those scripts shouldn't matter