1
0

Finished basic needs

This commit is contained in:
FoxSpellCaster
2025-04-17 22:27:22 -04:00
parent c69e069e0a
commit 94c153f106
11 changed files with 65 additions and 40 deletions

View File

@@ -55,4 +55,16 @@ func _on_pressed():
remove_item()
func drop_item():
pass
if item == null:
return
var world_item = item.world_item_scene.instantiate()
add_child(world_item)
world_item.position = inventory.get_parent().position + Vector3(0, 1.5, 0) - inventory.get_parent().basis.z
remove_item()
func _on_gui_input(event: InputEvent) -> void:
if event is InputEventMouseButton and event.pressed:
if event.button_index == MOUSE_BUTTON_RIGHT:
drop_item()