Quote from: Holyrapid on September 13, 2012, 03:20:34 am
The reason i want it to delete the saves is so that when you die, you can't just load up from before, and continue...
instead of deleting files you could just have an auto save profile, you start a new game bu making a new profile and that profile is 1 save, have it save automatically without the user knowing at points (like checkpoints) and then have the game save on death as well
ofcause, the user can still just copy and past backup saves, to prevent this timestamp in the save filehave a system file which stores the timestamp for each profile, when you go to load, compare the timestamp in the system file with that in the save file, if they don't match, the save file is invalid and don't load the game
now, how do you stop a user from backing up both save file and system file........stuffed if i know, best guess is that you also have a timestamp in the system file for the last time it was edited and check this against the files own Modified date, don't know if you can do that in Ruby or RGSS, also, that's just a theory i have yet to successfully implement in Game Maker, thing it might be C.C's doing there since one file, even after i permanently delete it and have Game Maker recreate, dates the Created date as being that of over a year ago