From feeb9a456da96f1fc1581d8aad1f888f366bcc8f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Jan 2023 20:56:13 +0100 Subject: [PATCH] Press esc to return to the menu --- player/Player.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/Player.gd b/player/Player.gd index 3f9d2d4..d56f494 100644 --- a/player/Player.gd +++ b/player/Player.gd @@ -134,7 +134,7 @@ func _input(event): respawn() if event is InputEventKey and event.keycode == KEY_ESCAPE: - get_tree().quit() + $"/root/BaseScene".move_to_menu() if event is InputEventMouseMotion: var vec = event.relative