How to count Sprite2D overlaps

Godot Version

4.2.1

Question

Hi all,

I have a Sprite2D instance (with a CollisionShape2D as a child). I need to keep a count of how many other Sprite2D instances overlap with other Sprite2D instances.
Would I need to use a signal from the CollisionShape2D (rectangle)?

Thanks for any help!

You need to use an Area2D Here’s a tutorial for that Using Area2D — Godot Engine (stable) documentation in English

1 Like

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