any other way to save without f5 and f6? i've heard of ini files but dont know how to use them, also in side-scrollers what would be the best way to zoom in out towards say" the main charcter"
im using gm8 lite
Saving and Camera zoom
Started by Melle1, Oct 13 2011 02:41 AM
6 replies to this topic
#1
Posted 13 October 2011 - 02:41 AM
#2
Posted 13 October 2011 - 02:49 AM
game_save();
game_load();
game_load();
#3
Posted 13 October 2011 - 03:27 AM
game_save();
game_load();
will this allow me to save certain variables instead of states?
#4
Posted 13 October 2011 - 06:16 AM
Ah, I missed that part about the ini files.
They're very easy.
They're very easy.
ini_open("game.gms"); // Will create the file if it doesn't exist; pick any name and extension you like
ini_write_real("Player", "Health", health); //Read the manual for a more in-depth explanation on reading and writing
ini_close();
#5
Posted 14 October 2011 - 03:59 AM
Ah, I missed that part about the ini files.
They're very easy.ini_open("game.gms"); // Will create the file if it doesn't exist; pick any name and extension you like ini_write_real("Player", "Health", health); //Read the manual for a more in-depth explanation on reading and writing ini_close();
Like X says on Command Mission, "Thanks A Lot!" , oh btw any chance I can find that Manual that is referenced on the code, unless its the GM help thingy lol.
#6
Posted 14 October 2011 - 04:39 AM
Yeah, that's it. Just search for "ini" and you'll find everything you need.
#7
Posted 16 October 2011 - 02:47 AM
cant help but ask , but can i get a small example?
say my object is obj_savedata,
in the Create Event: it activates its elf in the 1st room of the game, to load old data, or create 1st time save data
how would i code it
with one variable: levels
represents how many levels are completed
say my object is obj_savedata,
in the Create Event: it activates its elf in the 1st room of the game, to load old data, or create 1st time save data
how would i code it
with one variable: levels
represents how many levels are completed
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











