extends Area2D signal alert func _on_body_entered(body): print("Trigger detected object") if body.is_in_group("box"): print("this is a box") alert.emit(body)