I have a main World scene that i play my game. In this scene i have on the top a pause touch screen button.
Also i have and a Pause scene with two buttons: A Resume touch screen button and a Quit touch screen button. The Pause scene is a node scene in World scene (instance a scene as a node).
From the Pause button i send a signal to the World node script:
func onPause_pressed():
#
get_tree().set_pause(true)
get_tree().change_scene("res://PauseSceen.tscn")
pass
When i press the pause button during the gaming the game stops and i can see the Pause scene with the Resume and the Quit Button. When i press the Quit button the game close normally.
func onQuit_pressed():
get_tree().quit()
pass
But when i press the Resume button the game does not continue but i just see a grey scene:
func _on_Resume_pressed():
#
get_tree().paused= not get_tree().paused
visible= not visible
pass
Any idea please?
Thank you.