• 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 /
  • Help Room /
avatar image
0
Question by tryMeOn · Feb 17, 2017 at 10:13 PM · multiplayercharacter customization

Multiplayer game with 2 different type of player, what the best choice?


Hello Every one,
I am kind of new on unity, I know php programming and I am learning c++ in game making matter, but I dont know all unity modules and libraries.
I already did some prototypes and I start a complete multiplayer game... I know... I know.. what you all will say me... but let’s jumps the madness of my decision... I will explain you my game:
• This is a multi-player game

• I have to types players: A and B type

• Every type of player have their different customable outfit sets;

• In game there will be 4 times more of type A than type B;

• Each type have their own character controller style;

• Each type have their own camera controller ;

• Type A need to see type B cams are showing;

alt text Here what I don’t know what would be the better solution in code:
The customization outfit:
Option 1:
1- I create on fbx with all outfits skinned to the same rig (bones). In an array, I activate the 3d model when the item is selected.
2- Once it is done, I just save and pass users outfit choices
3- On the load game play, I destroy all 3d models not chosen.

Option 2:
1- I create fbx: 1 to the body and one for every outfit set.
2- I make and game object to each part of the outfit (hats, glasses, shirts, etc) and I change the mesh on the skinned Mesh Renderer component according to the user choice.
3- I save the player as a prefab that I will load on the next scene

For the cameras:
Options1:
1- I will have one camera typeA that will be used by the local player if this is a TypeA player or destroyed if it a typeB player;
2- I will send every typeB camera to the server that will send a version of each to every player;

Option 2:
1- I have one cam typeA and 1 cam typeB on the local player typeA, and just on cam typeB when player is typeB;
2- I create in the server a dumy for every typeB cam that will track the position and orientation of every typeB cam;
3- on the local player typeA, the typeB cam jumps aligning to each typeB cam as the user switches;
And here what I have totally no idea how to do it...


Loading 2 Different Players on the network
Option 1:
I create on only prefab with both player controllers, outfits and I destroy the features of the one not chosen

Option 2:
On the exiting from the outfit scene I save the prefab of the player type with the same name one the directory that network will load it

Any other better option will be more than welcome.

Thank you for taking time to read it... and more thank you if you reply on this. I do appreciate.

Cordially,

ghg-game-play.jpg (61.1 kB)
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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

123 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiplayer - Using BroadCast in OnIncomingData function 1 Answer

Movement Script Affecting Other Player's Movement 1 Answer

TrailRender not showing in all clients using Mirror networking 1 Answer

How to organise game data for multiplayer with a player manager? 0 Answers

How do i use RPC's to set a object active in the hierarchy for all Players in the room and also how do i synchronize UI events focused on a VideoPlayer (Play, Pause etc.)) 0 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