how to use Area2D overlapping_body bool?

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

I have been trying to detect if an Area2d is overlapping a rigidbody2d with the overlapping bool, but it keeps popping up error messages. Could someone please give me an example to set me in the right direction?

You’re going to need to provide more information before anyone can help you. What are the error messages? What “overlapping bool” is this, is it one of the methods on Area2D?

If you want an example usage of Area2Ds, you could check the coins in the 2d platformer demo project, although that doesn’t use the overlaps_whatever methods.

markopolo | 2019-09-24 12:22