2D Player Attack Animations in Unity
3 min readJul 1, 2021
To create the 2D attack animations start you go through the same steps that I should in my previous articles to create the animations in the animation window.
The attack will work by creating a trigger parameter for the attack animation. When triggered it will play the animation and go between idle or run depending on the speed of the player.
In your player animations create a method for your attack.
In your Player script create a method to allow the player to attack and call it in the update method.
This will get the player swinging their sword.