extends StaticBody2D signal interacted var interaction_area: Area2D func _ready(): add_to_group("interactables") interaction_area = Utilities.Collision.Area.new(self, $CollisionShape2D) add_child(interaction_area) func _physics_process(_delta): if Input.is_action_just_pressed("ui_accept") and interaction_area.has_overlapping_areas(): for area in interaction_area.get_overlapping_areas(): if area.is_in_group("player"): emit_signal("interacted")