Inventory Working


I just finished up something reminiscent of a functional inventory system. The plan is to have something like a functional alpha by the end of the weekend.

Moving nodes around in Godot is trickier than I originally figured. I was originally hoping I could just move them to a different tree and that would solve any issues, but it isn’t as clean as I’d anticipated, and makes duplication issues problematic. So…looks like lists, unique IDs, and inventory checks on node creation:

#Unique Identifier for Inventory
var inv_id = "Test Box"


func _ready():

	#Inventory check...does it exist in the player inventory? if so, remove it.
	if inv_id in GameData.inv_list:
		queue_free()

Leave a comment

Log in with itch.io to leave a comment.