Idk what is making it crash. I originally had it when I imported the pipe scene sending a signal to the area2d and when the player enters to close the window. When I added a second area2d everything broke. I tried adding a second signal to the first area2d script, moving it to the world scene, but that didn’t work either.
Screen shots might help (It’s probably because I’m new to the phone and that’s why no zip can be uploaded). So there are two scenes the first one is the main scene the second one is the tree of the scene that is causing problems. There isn’t code for the second one because it’s linking into the main one when it gets imported in.
Is it attached to the player character and meant to detect other players? Then just add if player != references to overlapping areas to filter away the player it is attached to
The area2ds aren’t overlapping and I don’t think it can physically happened first frame. Also just to double check I’m looking at the player script and there’s nothing in there to make it quick first frame.
Your areas do overlap with the floor. When they detect the overlap on the first frame, they check if the player is in group player, which is always true, so the game quits.
You want to check if the overlapping area is in group “player”, this script shouldn’t keep a player variable at all.
Yeah I’d suggest you to change the quit with prints because debugging this is hell. And yeah, you’re checking if the player is in group player which should be true. Maybe you wanted to check if the body is player, or in group player? Either way, using the debugger (via the breakpoint keyword or using the debug tray) would be awesome here, especially to know which events fire and with which bodies