Hello, I'm new in this site. I need help for my Unity Game. So I finished my game but I want the game to Auto-Save and Auto-Load. And I'm a NOOB at C++, I know NOTHING, I created the game with a tutorial, just copy and paste, and I need you guys, if it doesn't matter you, to create a auto-save/auto-load script for me ^^
My game is a "cookie-clicker" based game: You click on a ball, and you buy upgrades with the "click number" and this upgrades are to auto-click or multiplier... etc
It has been 2 hours I'm searching on the web a script, I found nothing... Please help :'(
I don't need the zip file thanks. My point is for you to post a relevant sample of your code so your problem is less generic. It seems also your program is not written in C++ so you might be looking in the wrong place, maybe not.
Whatever the situation is, if you are primarily loading and saving data then use the following tutorial as a start.
For the 'auto' component of the saves maybe you need to investigate timers and interrupts.
It looks like the Unity Game Engine use either JavaScript, C# or Boo. So maybe the OP might be better off at one of those forums, or indeed the Unity Forum?
Ok, so after pasted your auto-save script, it works. I have the auto saves scenes, but now, I've been searching how to auto-load these scenes when I start the game for 10 minutes and i don't know how I can auto-load the last saved scene and not all the scenes...
Oh? When I want to build the game in order to test the AutoSave, they said this: Assets/Scripts/Save.cs(4,7): error CS0246: The type or namespace name `UnityEditor' could not be found. Are you missing a using directive or an assembly reference?
Assets/Scripts/Save.cs(7,2): error CS0246: The type or namespace name `InitializeOnLoadAttribute' could not be found. Are you missing a using directive or an assembly reference?
Assets/Scripts/Save.cs(4,7): error CS0246: The type or namespace name `UnityEditor' could not be found. Are you missing a using directive or an assembly reference?
--> Error building Player because scripts had compiler errors
It's the same script than your link, what's the problem?