I also noticed a problem with the attack. But I don't know how to fix.
The first issue is when the player attacks, it stuck in the ground, so I'm making the player jump before doing that, Maybe it's something to do with collision, I guess. and as you said it is not centered properly.
Thank you for the comment and for playing my game. I'll fix the issue in my next game.