can't pause tree with get_tree().paused = true

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gdnc

I have a scene that catches a signal from a child, indicating that the game should be paused, sort of like so:

func _on_Player_paused():
	get_tree().paused = true

I know that the signal is getting through because asdf is being printed out, but my game continues to run. Any tips on troubleshooting this?

:bust_in_silhouette: Reply From: gdnc

never mind, figured this one out. My unpause function was being run with the same keypress