I have two objects that are basically the same one, basically coins, but I have a problem cause the script that the object has, only works with the first I added to the scene and affects the other one without touching it.
Basically my script is something like this
func _on_Area2D_body_entered():
queue_free()
print("Coin collected!")
Is there a way to make the script work only with the object that the player touched?