Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Flipping animation the way the player is facing 2D

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

  1. Shiba_Sensei


    Sep 13, 2023
    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.