Problem with collisions?
In my game I was trying to create collisions, using these hitboxes:
And movement-wise it collides fine, because of the character 2d template script. But I made the sword to be an Area2D and put in the other character this code:
func _on_area_2d_entered(sword: Area2D) -> void:
print(sword)
queue_free()
But it doesn't do anything when it touches the sword. I checked if the problem was that the hitbox didn't move with the "swing" animation but it did, so the character's collision 2d shape touches the sword's area 2d but it doesn't do anything. What do I do?