Area 2D and cursor

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tort
:warning: Old Version Published before Godot 3 was released.

How do I know that the cursor is in the area 2d?
enter image description here

:bust_in_silhouette: Reply From: Tort

Solved.

print(get_node('area_2d').overlaps_area(get_node('cursor/area_2d')))