Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Kashaunzilla · Apr 25, 2011 at 09:16 PM · gamesavesaving

Saving a game for the player

Ok so i am making a amaising game using unity, been using it for a while now and i would like to be able to have my player save his progress when he wants to by press escape, and there will be a GUI Box or something and a button has the word Save on it. When you hit save it will save the players data its level skill and so and so. I got this script that i am working on. Its just a test so no critisizing please.

function OnGUI () { if ( Input.GetKeyDown("esc")) { GUI.Box.enabled = true; GUI.Box (Rect(10,10,130,130), "Player Status"); if (GUI.Button (Rect(10,10,50,50), Save Progress)) { SaveGame(); } } }

function SaveGame () { SaveTo("Computer"); }

So i dont know whats wrong, just the computer part is messed up with to computer part, i want it to save it that persons computer like it does with some wooglie games how you type in a name and saves that as your name for multiplayer stuff and will automaticly save its self to the computer, but only to like save progress. But i want it to save for when you press the save progress button and it saves the data onto the hard drive, then when you go tom play the level again your score is gone but not your exp or new weapons or badges. I know there is a way to do this, so, how can i do this!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SpeedySpikes · Apr 25, 2011 at 10:05 PM 0
Share

Yes, please someone answer this! I need something to use, too!

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by DaveA · Apr 25, 2011 at 10:10 PM

Did you try searching this forum for 'save game' ?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kashaunzilla · Apr 25, 2011 at 11:47 PM 0
Share

Thats not a answer, no but i want a direct answer thank you.

avatar image DaveA · Apr 26, 2011 at 12:25 AM 0
Share

Other people have asked this wanting a direct answer. Teare has a better answer. It's hard.

avatar image
1

Answer by Teare · Apr 25, 2011 at 11:56 PM

This is a complicated process, much more than just a simple line of code. This might help though:

http://answers.unity3d.com/questions/971/how-to-scrip-a-save-load-game-option

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

No one has followed this question yet.

Related Questions

saving the game in position 1 Answer

Saving player stats for each level, static class or not ? 1 Answer

How do I quickly save a large number of variables? 5 Answers

Save scene 1 Answer

saving volume between scenes 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges