How to run code while body is in a collisionshape

The Title is explanatory, i want to run a script while the player is inside a CollisionShape2d (child of Area2d obviously) but i cant find a way to do it, does anybody know how to do that?
my player is in the group “Player” btw.

any help is appreciated!

-Quinn <3

You can use Area2D.get_overlapping.bodies() to check if character body is inside an area.

thank you so much!!! it works!!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.