Added interacted signal to player. Removed deprecated tips

This commit is contained in:
2026-03-16 21:50:31 +03:00
parent b5b2c7691b
commit 489c89e1ac
11 changed files with 47 additions and 135 deletions
+4
View File
@@ -3,6 +3,7 @@ extends CharacterBody2D
signal dead
signal interacted
const PICKUP_OFFSET = 16.0
@@ -55,6 +56,9 @@ func _physics_process(delta: float) -> void:
if is_dead:
_slow_down(delta*3)
else:
if Input.is_action_just_pressed("interact"):
interacted.emit()
if Input.is_action_just_pressed("jump"):
jump_buffer_timer.start()