Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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 Input.is_action_just_pressed("interact"):
|
||||
%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
|
||||
Reference in New Issue
Block a user