x


Save & Load Game question

hi

i am using save & load game javascript from unitywiki here the script so, my question is in my game i have 4 different scenes & i want add these scene information in the save game script, means this script save only player position so, when i start the second scene & press the save button & then quite the game next time i start first scene so basically i want to start my second level so i just click the load button & then i want to start second scene(which i already save when i playing second scene)

i don't know how to do that can someone tell me how to do that

sorry for the english but my sure you get it my point thanks

more ▼

asked Apr 15 '10 at 11:06 PM

Apexuni gravatar image

Apexuni
72 14 15 22

i already add all these scene in my build setting

Apr 15 '10 at 11:09 PM Apexuni
(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Well you could save the level name or number in a variable and save that alongside the position of the player. Then when you load you can call Application.LoadLevel().

more ▼

answered Apr 17 '10 at 12:27 AM

ZeoN-FrosT gravatar image

ZeoN-FrosT
36 5

seems pretty straight forward

Apr 17 '10 at 01:15 AM spinaljack
(comments are locked)
10|3000 characters needed characters left

simply put the Application.loadedLevel in your save data and then use it to load back the level again at load time.

more ▼

answered May 01 '10 at 02:26 AM

Ashkan_gc gravatar image

Ashkan_gc
9.1k 33 56 117

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

answered Jun 29 '10 at 03:51 PM

crasyboy42 gravatar image

crasyboy42
214 21 21 23

thats what he is using

Nov 08 '11 at 11:47 AM puzzledragon
(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:

x717
x437
x436
x297

asked: Apr 15 '10 at 11:06 PM

Seen: 7018 times

Last Updated: Nov 08 '11 at 11:47 AM