extends Area2D var inside = false # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: pass func _input(event): if inside and Input.is_action_just_pressed("interact"): $AudioStreamPlayer2D.play() %Player.play_animation("drink",2100) func _on_body_entered(body: Node2D) -> void: $Label.visible = true inside = true func _on_body_exited(body: Node2D) -> void: $Label.visible = false inside = true