I want to make an inventory system where you equip the first item in a "TextureRect" node.
How I want to achieve this:
- I have a 'GridContainer' node where my inventory is, I want it to get the texture 'TextureRect' it uses (In this example Iron Sword) and if it's an Iron sword to change the sword sprite texture to an iron sword.
How I've tried to achieve this:
if $CanvasLayer/Interface/Inventory/GridContainer/One.texture.resource_path == 'res://Assets/PCs/Knight/Sword/Iron/portait.png':
$SwordNode/SwordSprite.load("'res://Assets/PCs/Knight/Sword/Iron/sword.png")
pictures can be supplied if necessary.