extends Popup onready var dead # Called when the node enters the scene tree for the first time. func _on_dead(): # pass # is_visible_in_tree popup_centered() # get_tree().dead = true # $dead_popup.show() func _on_respaun_pressed(): $dead_popup.hide() if Input.get_mouse_mode() == Input.MOUSE_MODE_VISIBLE: Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) get_tree().paused = false func _on_Dead_Popup_hide(): pass # Replace with function body. func _on_Dead_Popup_visibility_changed(): pass # Replace with function body.