game_load


Description

With this function you can load a game that has been saved previously (using game_save).


Syntax:

game_load(filename);

Argument Description
filename The name of the file to load.


Returns:

N/A


Example:

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.