My continue button isnt workin because I paused my game. And I want to add code activating my continue , back to menu etc. buttons. How can I ?
(Im new on english and develoop game)
one more thing
how can use my continue button ?
extends Button
func _on_continue_Button_pause_pressed():
x
$"../..".visible = false
pass # Replace with function body.
In the editor if you look at your button you will find in the inspector right at the bottom you will find a pause mode, this will probably be set to inherit, change this too process and then it will work when you pause the game.
It paused because when you use get_tree().paused, it pauses everything in the SceneTree UNLESS that object is set to Process on Pause Mode. Go to whatever object needs to move/activate while paused, go to the Inspector on right and set it to Process and it should work.