Hello, I can’t verify it now in godot but I think the error is that you are redefining the status variable with the word “var” therefore the original variable never changes, try this:
var status = false
func _on_NormalButton_pressed():
status = true
$NormalButton.hide()
Thank you very much, you’re right this could end up being redundant, I just changed it
The variable change contains a copy of the value of status, not a reference! If you change status later, the value of change won’t change. This should work:
func _process(delta):
var change = get_node("/root/Main/HUD").status
print(change)
If you want to avoid polling for the value each frame, you can emit a signal when the value of status changes and connect your printing function to it.