x


how to save a load a game?

in my game i want it that when i collide with a "save sphere" my game automatically saves my game where it was. how would i come about doing this?

more ▼

asked Aug 18 '10 at 06:57 PM

john 2 gravatar image

john 2
75 29 35 46

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

1 answer: sort voted first

Take a look at using PlayerPrefs for small amounts of data. For something larger you may need to use either an XML file or a SQL database.

If you search Saving Players Position Unity or Saving Game Unity you will find lkots of results bot in Google and on this site.

more ▼

answered Aug 18 '10 at 07:36 PM

Julian Glenn gravatar image

Julian Glenn
2.6k 5 12 47

what's an xml/sql file? also what is a playerprefs.

Aug 18 '10 at 08:24 PM john 2

The link I provided explains playerprefs, also you could search this site for myriad examples. XML is and Extensible Markup Language documnet. SQL (Structured Query Language) is a database format like MS-SQL, mySQL, Oracle, Postgress, etc

Aug 18 '10 at 09:10 PM Julian Glenn
(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:

x5275
x455
x443
x301

asked: Aug 18 '10 at 06:57 PM

Seen: 2079 times

Last Updated: Aug 18 '10 at 07:37 PM