x


save, autosave and continue game..

hi everybody..

i need some help on saving, autosaving, and continuing a game..

SAVING :

the user presses a SAVE button which saves the game of the users progress..

AUTO-SAVE :

the application will save the users' progress for a few minute intervals..

CONTINUE :

the user will be press a CONTINUE button from either the SAVE point or from the AUTO-SAVE

with pretty please.. and with a few cherries, icing etc3 on top...

i need help on this... REAL BADLY...its urgent

thank you for your time reading..

its highly appreciated..

more ▼

asked Jun 11 '12 at 09:58 AM

zerox911 gravatar image

zerox911
145 13 21 24

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Saving a game is a tricky subject - I've released this (which is in Beta) that enables many things to be saved automatically. You can also add checkpoints regularly and resume from them. It will really depend on what you do in your levels.

more ▼

answered Jun 11 '12 at 10:00 AM

whydoidoit gravatar image

whydoidoit
33.7k 14 24 105

i did went to your website...

and i downloaded your example package...

it works.. ^_____^ thanks..

but how to make it to autosave..??

Jun 11 '12 at 10:09 AM zerox911

So you just want something in a timer that calls LevelSerializer.Checkpoint() every few minutes. That will save the Resume information.

Jun 11 '12 at 10:16 AM whydoidoit
     function Start()
     {
           InvokeRepeating("SaveCheckpoint", 60, 180);
     }

     function SaveCheckpoint()
     {
           LevelSerializer.Checkpoint();
     }

Will save after 1 minute and then every three minutes

Jun 11 '12 at 10:19 AM whydoidoit

yeah... some thing like that..

would the script create a new file that saves the progress and call it when its activated..??

Jun 11 '12 at 10:20 AM zerox911

It stores the resume information in PlayerPrefs - there's just one for the whole game at the moment. If you want to do it yourself you could store the string that is returned from LevelSerializer.SerializeLevel() and load it back using LevelSerializer.LoadSavedLevel(yourString);

Jun 11 '12 at 10:21 AM whydoidoit
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x823
x129
x30
x2
x1

asked: Jun 11 '12 at 09:58 AM

Seen: 838 times

Last Updated: Jun 11 '12 at 11:13 AM