I'm trying to make a platformer about a snake running around and making difficult jumps and if you fail them you die. I tried using a single Area2D node for the ground so that if you fall you die and change scene this is the code:
func onArea2Dbodyentered(body):
gettree().changescene("res://Death Screen.tscn")
it's connected through an onbodyentered Signal.
I tried putting 2 of them in a single scene but it automatically changes to the death screen even when the player is not touching any of the 2. Can someone help me?