godot 4 so i have been working on a project and here’s my code func _process(_delta): if Input.is_action_just_pressed(“pause”): pausemenu()
func pausemenu(): if paused: pause_menu.hide() get_tree().paused = false else: pause_menu.show() get_tree().paused = true
paused = !paused
now i cant use esc to unpause and the quit button does not work I NNNNEEEEEDDDD HHHHAAAAALLLLLPPPPP
I think this is because your node’s script stops running when you pause the screen. To fix this, you could add this to its own node, which has its process mode set to always. You can set this in the editor at the bottom of the inspector.
IVE BEEN TRYING SO MUCH CRAP AND NOW IT WORKS THANK YOU.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.