Pause and Save's icon

Pause and Save 1.0 Scripts 3.2 Community

Submitted by user Linko; MIT; 2020-12-05

There are two singletons, add them in Project > Project Settings... and in the AutoLoad tab.

Pause: it captures the mouse at the start. It pauses the game when pressing escape and releases the mouse, you can use it to display a menu. Pressing escape a second time will quit the game and save the game (you can remove this feature), pressing left-click with resume it and capture the mouse.

Save: it has a function to save the game and load it. By default there is a shortcut for a quick save by pressing F5 and quick load by pressing F6. You can use them while the game is paused.
The game will display a message in the top left when the game is loaded or saved.
You can call the save function from an Area node to make a checkpoint.


View files Download Submit an issue Recent Edits