• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Making save profile

D

Dreamerboy666.

Guest
Can someone help me i want like different save profile where ai can save different characters and different saves. put tutorial link and thanks ;)
 
I don't have a tutorial link for this specific question, but you could use: INI files to save your progress among your files...

For example
Code:
// By changing the file name, you can make dozens of save files...
// Saving...
ini_open( "YourSaveFile.sav" );
ini_write_string( "General", "NAME", "PlayerName" );
ini_write_real( "General", "HP", valueOfHealth );
ini_close( );

// Loading...
ini_open( "YourSaveFile.sav" );
nameOfPlayer = ini_read_real( "General", "NAME", "PlayerName" );
hp = ini_read_real( "General", "HP", valueOfHealth );
ini_close( );
 
Top