Hey,
I’m trying to make my own Platformer game, using what I’ve learned in the Unity 2D course.
I’ve made animation for when my player is attacking with his sword (which is on his back during his running around). I was wondering what is the best way to make it so that if the player hits and enemy with a sword it will deal damage as in - should I have another collider component for the weapon that will move with the animation, should I create a new game object which will be the sword that will move with the animation? and if so, what’s the best way to make the game object / collider component move perfectly aligned with the sword in the animation?
My player has capsule collider 2D for his body and box collider 2D for his legs
Can’t upload the animation video that I made for reference, so I uploading the sprites that I used for the animation