Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 · Jun 11, 2011 at 04:14 AM · playercustomization

Creating Class For Player

Ok i want to make the player be able to create its own player and edit the player anytime he feels like it when he isnt playing a match. The questions are seperate.

  1. "GUI Display" Ok so this is how i want it to look like. The player rotating slowly in the middle of your screen. To the left of the player the weapons and perks you have on and o the right the store/items where you can by.

  2. "Buying New Weapons + Select" Ok now when you click on the gui button it will create a drop down list showing me the weapons under it. If i do have it when i click on it i equip it but if i didnt if i click on it it will say o you want to buy this weapon at the top of the screen. Must have a sertain amount of points then you get for use.

  3. "Saving Character" Now when you want to save your character it will show save under the player and when you hit save it will save your player for when you join matches. Think of CoD how you create a class for your player and then you can play that player thats what i want.

You can answer just 1 or all of these questions But i would really like some help on this. I got no idea on how to even start this.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Ashkan_gc · Jun 11, 2011 at 05:07 AM

if you have no idea about it, maybe it's because you don't know unity or programming well. if it's not the case you should do something like this. you should have two List collections for your shop and your player's inventory. create a struct to put in the List as the generic object. for example a struct with a Texture2D and a name and an id or ... then create the gui to draw the list and do buying and ... using adding and removing items to the list.

for saving you can use player prefs or serialization. it's based on your own implementation. then in your gam just take a look at your inventory list and load all items that the player have.

creating a listbox in unity gui is not that hard but it requires a bit of coding.

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

2 People are following this question.

avatar image avatar image

Related Questions

Changing Player Color? Player Customization? 0 Answers

Player move and camera problem 2 Answers

Detecting when Player stoped to push a rigidbody? 3 Answers

How to make a GameObject that collides but the player can go through it? 2 Answers

Text displays during animation 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