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 !

asked May 30 in Engine by quizzcode (152 points)
reshown May 31 by quizzcode

1 Answer

0 votes
Best answer


to myself :)

answered May 31 by quizzcode (152 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 How to use this Q&A? before posting your first questions.