game_load

Loads a saved game from a file.

Syntax:

game_load(filename);


Argument Description
filename The name of the file to load.


Returns: N/A


Description

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


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.


Back: Miscellaneous
Next: game_load_buffer
© Copyright YoYo Games Ltd. 2018 All Rights Reserved