extends Area2D func _ready(): pass func _on_Item_body_entered(body): if body.is_in_group("Balls"): print("item picked up") queue_free()