Visibility code doesn't work!

Hi, I’m started godot not long ago.
I’m making some popup in my game.
In this process I need to control visibility of popup.
So I used “$node.visibility = true/false” and “parent_node.set_visibility(true/false)”, but it doesn’t work…
It turns off when it’s running.
I need your help.
Please help me!

gamequit_message variable is given wrong path or nothing is fed into it, hence null exception

1 Like

I used ‘onready var’ to designate the right path…
But it’s not working😭

I’d look for a typo. Or you can export it and fill it in the editor to make sure it’s set.

1 Like

How can I use editor??

it’s

@onready var gamequit_message=

drag and drop the gamequit_message node to after the =

1 Like

Oh thank you so much!

1 Like

It did it!!
You’r so genius!!
Thank you again😃

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.