0 votes

Hey there !
Working on a tower that would give an "aura" of bonus to the surround towers.
I separated the enemies and the towers in 2 groups of respective names.

Now. When my i place my tower i run this :

Placing the tower :


And this :

    var towers := []
for overlapping_body in get_overlapping_bodies():
    if overlapping_body.is_in_group('towers'): 

        print("we have detected a tower")

And nothing... But if I change the name group "towers" with enemies, it detect my enemies (kinematic2d).
Is there any restrictions im not aware of regarding area2d ?
thanks !

in Engine by (184 points)
reshown by

1 Answer

0 votes
Best answer


to myself :)

by (184 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.