Hello everyone, I want to show the button menu, if my ship is destroyed.
I have this but it doesn't show, but also can't display any errors:
func _ready():
connect("pressed", self, "_on_pressed")
attach("ship", "exit_tree", self, "_on_ship_exit_tree")
pass
func _on_pressed():
get_tree().change_scene("res://stages/stage_menu.tscn")
pass
func _on_ship_exit_tree():
$TextureButton/btn_menu.show()
pass
Any help?