Connecting area entered signal through code

Godot Version



I am trying to connect area_entered signal to a parent node through gdscript. in the scene I have the two areas overlapping on start, and with the current code I have it does not trigger the signal. However when I use the mouse_entered signal and connect it it does seem to work. I am not sure what I am missing.

The area_entered signal needs an Area2D parameter.
Add it to your callable: