Godot 4.0.2 Signal from fall zone not registering and not resetting the scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rayner9718

I have an Area2d node with Collisionshape2d acting as a fall zone. I have attached the body-entered signal using the node signal sidebar to my characterbody2d node and add in the code to reload the current scene.

However, when my character goes into the zone nothing happens. I am not sure what is going wrong with my code. Any help would be much appreciated.

did you try debug log this?

Moreus | 2023-04-09 12:48

check mask and collision layer

Moreus | 2023-04-09 12:49

All layers are set to 1.

rayner9718 | 2023-04-09 13:35

I tried using a breakpoint on the reset section of code but it’s not stopping the game when I enter the zone. It means that the zone is not registering when the player enters it.

rayner9718 | 2023-04-09 13:49

Oddly enough when I tried to copy the area2d node from my food pellets and made the collisionshape2d unique to jury-rig a detection zone, it doesn’t register too. The area2d node for food does register for collision though and updates the point and disappears. They are all connected.

rayner9718 | 2023-04-09 14:35

also is the “scene/main/node.cpp:1713 - Condition “!common_parent” is true. Returning: NodePath()” error code indicative of any problems?

rayner9718 | 2023-04-09 14:41