- Home /
How to set up multiplayer?
Okay, before anyone asks: Yes, I did try googling this. Yes, I tried watching videos, and yes, I actually attempted the stuff I watched. I am currently creating a FPS (please watch this, its very short: http://www.youtube.com/watch?v=zpfCeW9rYnE) and I would like to add multiplayer to it. The way I would like it to work is to load up with a welcome screen that lets you either create or connect to servers. Once you either create or connect, the main map loads with all the other players connected (right now, the players will look like capsules). How would I go about doing this? I have tried the ConnectionGUI script from Unities network tutorial, but I'm afraid I don't understand it. Would anyone please give me detailed instruction on how I would achieve this? Thank you for any answers.
One does not "Setup" a multiplayer.
$$anonymous$$ultiplayer is a vast subject which needs a lot of coding in order to be accomplished in a way that will enable a close to or actual smooth game experience.
You have to learn to code it and when you have specific questions I am sure we will all be glad to help.
You have a very nice looking project, it deserves a nice attention to the multiplayer too.
one does not SI$$anonymous$$PLY "Setup" a multi-player
Answer by valax · Aug 27, 2012 at 06:03 PM
Follow this tutorial, it works very well and you can easily edit it: http://cgcookie.com/unity/2011/12/20/introduction-to-networking-in-unity/
Answer by Chrisg · Jun 22, 2011 at 12:08 PM
Just to give you an idea, you just asked "Can someone teach me to be fluent in another language?" - it's not an overnight/week/month thing.
http://unity3d.com/support/documentation/Components/Network%20Reference%20Guide.html
Start here. By the end you should hopefully be able to narrow the question a bit.
your project is looking great so far, the art is impressive. Network connection is really a broad issue, but you can do quick tests of player interaction and scoring with local multiplayer, it's easy to setup, just create another player prefab and set the camera rect of player one to (0, 0.5) and player 2 to (0.5, 1) this way you can work on the gameplay before dealing with more complicated network issues. A good reference and easy to setup network demo is the $$anonymous$$2H $$anonymous$$m, although the free package is a bit laggy, it can give you some pointers, or you can buy their solution on the asset store if it fits your needs.