how can I detect if an kinematictBody is still on area2d

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

my player fall in lava lake. How can I detect if it still is there?

:bust_in_silhouette: Reply From: Dlean Jeans

Connect the body_exited signal of the Area2D from the Inspector
or in script:

if player in lava.get_overlapping_bodies():
    pass #code here