thank you but for the sword attack you can kill but the enemy have a lot of health sould i change it??
Yes please, one hit should be enough for the first kind of enemy. 2 hits maybe for the 2nd kind. And enemy should bounce back if a successful hit is made, and not keep running towards the player.
The animation of the sword attack, if you can tweak it to be an instant attack (when key is pressed), that will be awesome. It might or might now break its syncing with the sound effect but the sword attack is quite slow.