context menu added

player can find food and eat it
This commit is contained in:
Nikolai Fesenko
2025-08-20 16:45:03 +02:00
parent 9bab0ff0f3
commit a0efc6b9b8
11 changed files with 131 additions and 15 deletions

View File

@@ -112,12 +112,11 @@ func drop_item():
func _on_item_received():
if holdingItem != null:
pass
#holdingItem.use()
if target_action == "eat" and holdingItem.name == "food":
holdingItem.use()
print("I ate it")
func _on_input_event(camera: Node, event: InputEvent, event_position: Vector3, normal: Vector3, shape_idx: int) -> void:
pass
func _on_mouse_entered() -> void: