So I've recently made a start menu for a game I'm working on. And I've made a button which should spawn a window. I already set the window to hide()
and I want the button when clicked to change the hide()
mode to show()
I've done this in my code so far:
extends Button
func _on_button_up():
print("Button Status: clicked")
newgame.show()
pass # Replace with function body.
however, when I run this, it gives me the following error:
Parser Error: The identifier "newgame" isn't declared in the current scope.
P.S.: newgame
is the window name that I put.