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
1
Question by LordShigi · Feb 13, 2011 at 09:26 AM · savemenuhudmainmenu

Unity newbie questions | Player Boundries | Programming | Save game progress | HUD | Menu

Hello, I started using Unity3D yesterday. I'm a C++/C/C# programmer and Im having few problems with getting to know the engine. I have few questions, I would be happy if you could give me some resources for that topics(i tried finding them myself but I didnt find anything) or tell me how to start.

  1. Player Boundries: I have a terrain which is acctualy a river bottom and sides, over the terrain I have a plain which is water. Now I have this problem, since river sides go higher than the water plain (so it acctualy looks like a river) and I use First Person COntroller for movement the player can go to the river sides with the boat which isnt very realistic at all. So acctualy im trying to limit the player from going to the terrain, i want a way that i can stop the player from going on the terrain. I havent explain this as well as i wanted but if you have any questions, ask.

  2. Programming: I Watched a lot of tutorials but all of them talk only about the GUI of the engine. I want to know how I can make scripts for example to show a text when player is on a certain position and pushes a button.

  3. Saving game progress: Is there a way in Unity that i can save the game progress so it can be loaded afterwards so player doesent have to go trough the game over and over again. I would be awsome if I could save variable values in a file on the clients computer and when he loads the game again variables load again.

  4. HUD: Is it possible? How?

  5. Menu: How?

Sorry for lots of questions, it would be awsome if somebody could help me.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by lowcrawl · Feb 13, 2011 at 11:44 AM

Not sure I can answer all of your questions but here is what im aware of.

  1. Check out the Bootcamp demo project thats with unity and lookin the Hierarchy at Boundaries. They used a series of box colliiders (with no texture applied) to create an invisible wall that the player can not pass through. It sounds as if this would fix this issue.

2.I cant answer but I recommend searching the forums.

3.A couple of different methods but good links. Just search these forums. http://answers.unity3d.com/questions/7924/save-load-game-question http://answers.unity3d.com/questions/18942/saving-and-loading-help-please

4.Take a look here for alot of the GUI run downs through unity. Its not to bad considering 2 months ago i didnt know any of this and I get it. Its located here. http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html

5.Refer to question 4 and follow through the link as it should cover menus as well.

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
avatar image
1
Best Answer

Answer by johan-skold · Feb 13, 2011 at 12:45 PM

Note, I have assumed a certain degree of programming experience on your part, as you say you are a C++/C/C# programmer.

  1. Create an empty gameobject and add BoxColliders to it, moving them to where you want to block the player from going.

  2. I don't think there are many such tutorials for various reasons, mostly cause the code needed depends entirely on how you write your game code. For instance, the definition of player differs greatly from game to game. Seeing as you have programmed before however, you might be satisfied with just looking through the script reference. More specifically the Input class and the transform.position property. EDIT: After re-reading your question I realized you just might not know where to write the code in the first place. When I was in your shoes I did the 3D platformer tutorial, and after that I didn't have to do any more Unity tutorials.

  3. Just cause your managed code is running in an embedded version of mono, it doesn't mean you can't use the System.IO namespace.

  4. On top of the link lowcrawl provided, you may check the GUI class in the script reference.

  5. See 4.

Comment
Add comment · Show 1 · 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 LordShigi · Feb 13, 2011 at 01:16 PM 0
Share

I dont have the problem with the librarys and the syntax I just didnt know where do i acctualy write the code, i will check out the platformer tutorial. Thanks.

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

A GUI menu solution 0 Answers

I'm trying to add an options button to my game but it's not responding 0 Answers

How to save players position then load a level (pause menu) 2 Answers

save game menu 2 Answers

Menu communication failed 1 Answer


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