Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: nsyncpilu on October 10, 2013, 10:45:54 PM

Title: TNet Logic
Post by: nsyncpilu on October 10, 2013, 10:45:54 PM
Hello,

    After seeing the reviews on the Asset Store i bought the package.And i saw a lot of responses here on the forum and the administrator is very quick on responses.
    I managed to do the example on my local computer with 2 "games" runing and connecting to the server.
    But i have a problem:

    I want to create a 2D game that has multiplayer. The game will have 50-60 scenes (maps).And let's say it will have 1000 players.
    In each level only 2 players can play.They will play on the same level (map).But other 2 players will play on a different map.
    The game will run on Android, iOS and Facebook.

    1. Do i need to have 50 "servers" running ?
    2. How do i say that player 1 plays with player 3 and player 2 plays with player 4, and so on?
   
   

Thank you
Title: Re: TNet Logic
Post by: addebooi on October 11, 2013, 01:40:09 AM
I'm not exactly the admin here.
Quote
1. Do i need to have 50 "servers" running ?
No, you only need one server.
Quote
2. How do i say that player 1 plays with player 3 and player 2 plays with player 4, and so on?
You have to make channels for each one to join. Let's say player 1 is in channel 1, then player 3 would have to join channel 1 and so on, then you could be in the same scene at the same server.
TNManager.JoinChannel(); will make the channel(if not allready created)
Title: Re: TNet Logic
Post by: nsyncpilu on October 11, 2013, 02:44:16 AM
Thank you very much.
I will try that tonight.