I instance Bullets. Then I want that a enemy prints HIT if a bullet hits him. This I want to do with
func _on_Area2d_body_entered(body):
if body.get_name == "Bullet"
print("HIT")
But the problem is, that the name of the Instanced Bullet is something like @[email protected] and not just Bullet. How can I fix that?