Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Flipping animation the way the player is facing 2D

Discussion in 'Animation' started by ArcaneThriller, Oct 8, 2023.

  1. ArcaneThriller

    ArcaneThriller

    Joined:
    Sep 13, 2023
    Posts:
    1
    Hi, I'll try my best to explain my issue. I've looked online and cannot find a solution. My game is a 2D topdown shooter. I have a sword which after you collect it. whenever you press the attack button, it creates a sword prefab clone and then gets destroyed (similar to a bullet). I added an animation to it so it has a swing effect but it always points upwards. I'm trying to get it to rotate with the player. I haven't got any relevant code to share as nothing has been working.

    Thank you in advance.