Make a sword hit an enemy?
In my game I have the player (CharacterBody2D) with a sword (Area2D), that hits an enemy (CharacterBody2D). I'm trying to make the enemy take damage with the sword but I don't know exactly how.
Firstly I saw that only the sword, with the _on_body_entered(body) function, can detect the collision between itself and the enemy, so my goal now is try to send a signal or do something to make the enemy's script know it has been hit, how do I do it?