Why do we need the SwingDownFlipAnimation method?

Hi there,

I have just put the following line into the Attack method rather than into the SwingUpFlipAnimation method:

slashAnimation.GetComponent<SpriteRenderer>().flipX = playerController.FacingLeft;

That makes sure that the slashAnimation is always facing the correct direction left / right.
The SwingUpFlipAnimation also works on the left side then.
Seems to work as intended :slight_smile:

1 Like

Nice work ipevr :slight_smile: Always more than one way to do things and expanding beyond the course is a great way to learn!

Privacy & Terms