Jump to content
  • Advertisement
Sign in to follow this  
etag96

Simple 2 player Game Setup

This topic is 2547 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I use Unity3D and it's builtIn C# code, and i just recently downloaded the Electroserver apis and I know how to program in Unity's C#, but i don't know what the functions from ES mean, if anyone can help describe what each functino is/does or what function(s) are best for making a new room limited to 2 players, and if no room exists, or one is full, make a new one or search for another one, and basically allow each player to see the other one. Thank you for your time and any help!

-etag96

Share this post


Link to post
Share on other sites
Advertisement
While I'm not sure about Electroserver or the API's that are associated with it I do know that the most common networking that is done within Unity3D is done following this tutorial. I know that most of them use SmartFoxServer2 which would primarily be used for matchmaking in a simple 2 player game. As for the questions you pose at the end for making rooms limited to specific people you could run a check in the Update() function which would check how many people with the "Player" tag are connected and present in a scene and if its above a certain number not allow any more connections. Making people see each other and stuff I'm not too sure about I think its covered in the tutorial though.

Share this post


Link to post
Share on other sites

i don't know what the functions from ES mean, if anyone can help describe what each functino is/does




http://www.lmgtfy.com/?q=electroserver+api+documentation

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!