Think of your own file format and use GM's binary or text file functions to save and load to that.
e.g. if you have a metroidvania game and all you need to save is your current save room and the amount of coins you found, your file is saved like
Code:
file = file_bin_open_write(filename);
file_bin_write_byte(file,roomID);
file_bin_write_byte(file,coins);
file_bin_close(file);
and you load by extracting these values exactly the same way:
Code:
file = file_bin_open_read(filename);
roomID = file_bin_read_byte(file);
coins = file_bin_read_byte(file);
file_bin_close(file);
// And then you do stuff with the info you just retrieved, such as:
room_goto(roomID);
Code is made up on the spot, thus, no guarantee that it works, and it's only an example for using the gml file handling functions.
Think of your own file format and use GM's binary or text file functions to save and load to that.
e.g. if you have a metroidvania game and all you need to save is your current save room and the amount of coins you found, your file is saved like
[code]
file = file_bin_open_write(filename);
file_bin_write_byte(file,roomID);
file_bin_write_byte(file,coins);
file_bin_close(file);
[/code]
and you load by extracting these values exactly the same way:
[code]
file = file_bin_open_read(filename);
roomID = file_bin_read_byte(file);
coins = file_bin_read_byte(file);
file_bin_close(file);
// And then you do stuff with the info you just retrieved, such as:
room_goto(roomID);
[/code]
Code is made up on the spot, thus, no guarantee that it works, and it's only an example for using the gml file handling functions.