- Home /
Multiple Multiplayer Games on iOS
Hey Guys, I am new to the Unity, I am creating a 2D Turn based Game, So far I have Implemented Multi-player using U3Dxt Plugin, Now I want users to play multiple games at a time , they can see a Menu of active and Completed Games. select one of the Option smoothly transit to the Game... Take the Letterpress Example.
also how do I get all matches Details using U3Dxt,(active, your turn/not..) ?
Answer by u3dxt · Apr 18, 2014 at 04:36 PM
Hi, please take a look at Assets/U3DXT/Examples/gamekit/AdLibs and gamekit7/GKMeeting examples. GKMeeting uses real-time multiplayer so players can play a game at the same time. AdLibs uses turn-based multiplayer so one player can take a turn, and other players can take their turn at a later time, much like chess. These are good starting points and give good reference for you to adopt in your game.
To get all your matches (I assume you mean turn-based matches), you can use the TurnBasedMatchesController.LoadAllMyMatches() method (http://u3dxt.com/api/?topic=html/M_U3DXT_iOS_GameKit_TurnBasedMatchesController_LoadAllMyMatches.htm). It returns an array of TurnBasedMatch, which you can get more info on them.
Hope this helps.
Thankyou For the answer, I am having Problem using TurnBased$$anonymous$$atchesController.LoadAll$$anonymous$$y$$anonymous$$atches() method. what Parameter Should I pass to it. Can you Help me with an example.
TurnBased$$anonymous$$atchesController.LoadAll$$anonymous$$y$$anonymous$$atches(delegate(TurnBased$$anonymous$$atch[] matches, NSError error) {
if (error != null) {
Debug.Log(error.LocalizedDescription());
} else {
foreach (TurnBased$$anonymous$$atch match in matches) {
Debug.Log(match.message);
}
}
});
Thank you So Very $$anonymous$$uch !! "u3dxt" Excellent Support. :) I' ll $$anonymous$$eep bothering you with some more questions.