Bug: Extra punch

I am facing a bug where my character is letting out 1 extra punch even after the enemy is dead before starting attacking. My code is pretty similar to Rick’s yet there are a few changes and i cant find out where is it going wrong. Need some help.

One of the first things to check is to make sure that in the transition from Attacking to Locomotion with the “stopAttacking” transition, that the “Has Exit Time” is unchecked. If it’s checked, then the animation will complete even though the stopAttacking trigger has been set.

If that doesn’t do it, paste in your copy of Fighter.cs, and we’ll have a look.

1 Like

Privacy & Terms