|
I know that saving a game is dependant on the game and it's content so there is no simple answer t this, but i can't seem to find a good explaination of how to do it... i believe there are two ways to go about it, XML and Player Prefs or something? Can some1 please give me an explaination of either? e.g function SaveGame(){
}
(comments are locked)
|
|
Basics are:
It is rather big code and it depends on what you want to save. You can read about import/export and files in reference documentation. good answer, thanx for the response. i understand what i want to save... things like players name, level, stats and inv items but what i need to know is how to script the filepath for a savefile. I have traulled through the documents for the past week and can't find what i'm lookin for.
Feb 08 '11 at 11:58 AM
Mike Ledwards
Application.dataPath Contains the path to the game data folder. More info: http://docs.unity3d.com/Documentation/ScriptReference/Application-dataPath.html
Aug 20 '12 at 12:51 PM
chelnok
(comments are locked)
|

http://answers.unity3d.com/questions/971/how-to-scrip-a-save-load-game-option
Here is enough stuff for starting. Also there is a lot about exporting arrays to XML in Adobe ActionScript 3 reference. You can write a few scripts in Flex Builder(As I was doing at first time, because I started FlexBuilder much earlier than Unity). There is a free version of FB by the way.