Hello all. I am designing a small little game to take a break from FOH and get a bit better at coding in general, and i have gotten to a point where i need to start saving a little bit of data(just max health, money, upgrades, etc. its like a temple run type game.) and i have never worked with these for saving. i understand how to write them and how to read them with code, but i have one issue. creating it and putting starting data in it. is there an easy way to say like
if the INI doesnt exist/is blank/whatever or if this global.maxhp is undefined then global.maxhp = 1 or whatever?
or is there a better way to get save data of just a few variables into the game? I am thinking of porting this game to HTML or something, maybe IPhone if i spend enough time on it. is there a way of saving that would work no matter the system? or atleast works with regular gm and then the in web browser version?