Game load

Explanation
Many games offer the player the possibility of saving the game and loading a saved game. In Game Maker this happens automatically when the player press  for saving and  for loading. You can also save and load games from within a piece of code.

Please realize that only the basic game data is being saved. If for example you play a particular piece of music, the precise position in the music is not saved. Also changed resources are not saved. Other things that are not saved are the contents of data structures, particles, and multiplayer settings. Look game_save for more details.

Note that loading only takes place at the end of the current step. After loading of the game all room settings and instances are got from the savefile. No code after game_load can influence the loaded game directly. However this code can influence loaded game indirectly through files or registry.