Hi folks, i had a question since it has been years i programmed a game i forgot how to do this but can someone tell me or make an example on how to make a save loading screen? Like how to save a current frame, and then load it up again later.
For my old games i used to use ini files to do this, do you guys still use that or is there a better way. Please let me know how to it would be apriciated. Btw i am using mmf 1.5,
Be sure to follow us on the twitters for the latest and greatest: @dailyclick
im going to post a little tutorial sometime on a really simple but very effective way of saving games, mainly for big games like RPGs/Adventure-platformer stuff.
you need the 1000 Global Values object and the Save Game object.
basically ive got a group called Save, quite obviously , the 2 above mentioned extensions and a counter. whenever the game wants to save it activates the Save group and now it begins (im running off the top of my head here so sorry if its not 100% accurate)
Always= add 1 to counter, save value "number of counter+(1000 Global Values+value of counter)".
*then when the counter hits the biggest number you want it to save, say 30 you just do*
Counter value is greater than 30= save memory to disk, close group.
*loading is done very similar, but in reverse, it loads up from the save file object into the 1000 global values object*
done! or it should be. this way you can pretty much have any number of global values. if only i thought of this for TOR instead of writing out 80 individual events when saving values. ah well this should work, if this dosnt help maybe the tutorial will
Or you can just allocate an array with 3 Z values eg
2Z=Stats And Globals
So. (cant rember exactly how its setout but its a bit like this)
You could do it with a function object aswell so...
.On Function: Save_Game - set X,1,Y,1,Z,0 to X=X(Player) Y=Y(Player) Z=0
- set X,1,Y,1,Z,1 to X=X(Badie) Y=Y(Badie) Z=1
- set X,1,Y,1,Z,2 to Global Value A
- Save Array : AppDrive$+AppDir$+Save.sav
.On Function: Load_Game - Load Array : AppDrive$+AppDir$+Save.sav
- Set Player X(ArrayXYZ,0(1,X,)
- Set Player Y(ArrayXYZ,0(1,Y,)
- Set Badie X(ArrayXYZ,0(1,X,)
- Set Badie Y(ArrayXYZ,1(1,Y,)
- Set Global Value A to Array(X,1,Y,1,Z,2)
Thats the gist of it its not exactly what it will looks like AT ALL but its cloeish! and the gist of what you need to do!
The only thing better than winning gold in the paralympics is not being retarted