With this function you can load a game that has been saved previously (using game_save).
game_load(filename);
Argument | Description |
---|---|
filename | The name of the file to load. |
N/A
if keyboard_check_pressed(ord("L"))
{
if global.Save game_load("Save.dat");
}
The above code will load a previously saved game if the global variable is true when the player presses the "L" key.