How can I make an Area2D detect a body in a certain group (in Godot 4.3 there is no is_in_group() function)?

Godot Version

Godot Engine 4.3

Question

Hi everyone, I have a question, how can I make an Area2D detect a body in a certain group? Because in Godot 4.3 there is no is_in_group() function, my question is: Which function will replace it? Thank you so much for reading my question, I'll be here to have my question answered

You can still call is_in_group this way:

if body in get_tree().get_nodes_in_group("guards"):
    ...

EDIT:
i just looked in the docs and this method still exists

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