Le_Beholder
Member
Anyone have some tips on how I could setup a save/loading system? I know it involves several functions to write my desired variables down into ini files.. but as far as implementation goes..
Step events? For loops?
Is it something like:
If select = true
{
case "Save":
ini_write_file(variable?)
ini_write_real(variable?)
break;
}
I've never attempted a save system before.. been trying to Google around for the ancient GM8.0 articles of more, but alas they are buried.
I only need to save some global variables, stuff like a boss(s) beIng defeated, heart containers gathered(how many and from where.)
What button that unlocks a secret door was pushed, said door being unlocked, the position of the block that pushed the button, what tools the player obtained on his perilous quest, and lastly, game configs like keyboard preferences, music and sound levels..
Ok that's quite a laundry list... But it should be easier since the world I'm building is only in one room, I think.
Any ideas? Links to old posts or videos? Would greatly appreciate any help!
Edit: actually I don't have a game configs section made yet, or half of an idea how to do that.. so just help with the other stuff, it's all just a long bridge to get over.
Step events? For loops?
Is it something like:
If select = true
{
case "Save":
ini_write_file(variable?)
ini_write_real(variable?)
break;
}
I've never attempted a save system before.. been trying to Google around for the ancient GM8.0 articles of more, but alas they are buried.
I only need to save some global variables, stuff like a boss(s) beIng defeated, heart containers gathered(how many and from where.)
What button that unlocks a secret door was pushed, said door being unlocked, the position of the block that pushed the button, what tools the player obtained on his perilous quest, and lastly, game configs like keyboard preferences, music and sound levels..
Ok that's quite a laundry list... But it should be easier since the world I'm building is only in one room, I think.
Any ideas? Links to old posts or videos? Would greatly appreciate any help!
Edit: actually I don't have a game configs section made yet, or half of an idea how to do that.. so just help with the other stuff, it's all just a long bridge to get over.