Hey everyone I am trying to script this thing that when a button is pressed it will hide the wings from another node. Both nodes are linked to the same main scene but I want the button when clicked to hide a specific sprite in the world. Sorta like an equip/unequip button.That's the right path by the way if that helps. Also when I get the path then do hide() it hides the entire GUI and not the item. How do I make it so it only hides the item and unhides it when the button is clicked again?
Here's my script:
extends Panel
func _ready():
set_fixed_process(true)
func _on_MenuButton_button_down():
get_node("Player/Shane's-Wings")
hide()