My Restart Button won't work

Godot Version

Godot 4.2

Question

So I’m working on a Pong game, and I’m trying to add a restart button, but it didn’t work. I thought it was the code not actually being able to change the scene back or maybe some problems with the color rect I used as a temporary background, until I added a print function and realized the button wasn’t even having it’s click registered at all :slightly_frowning_face:.

I think it has something to do with the ‘get_tree().pause() = true’ function I used, can anyone help me out here? I’ll add more code and images later. Thanks in advance :grinning:

You button may need to Process Mode set to “Always” or “When Paused” for it to operate while paused.

1 Like

IT WORKED, Thank you so much! :grinning:

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