Questions tagged [gkturnbasedmatch]

The GKTurnBasedMatch class allows your game to implement turn-based matches between sets of players on Game Center. A turn-based match uses a store-and-forward approach to share data between the participants.

The GKTurnBasedMatch class allows your game to implement turn-based matches between sets of players on Game Center. A turn-based match uses a store-and-forward approach to share data between the participants.

When a player participating in the match performs actions that advance the state of the match, your game describes the new state of the match and decides which player acts next. The next player to act is notified by a push notification.

Later, when the next player launches your game, you download the match data from Game Center and continue the match. Players take turns acting (based on whatever internal logic your game implements) until the match ends.

One advantage of turn-based matches is that a player may participate in multiple matches simultaneously.

104 questions
0
votes
1 answer

IllegalStateException ParticipantResult TurnbasedMultiplayer

I am very novice so please excuse my bad coding habits, but I encountered an IllegalStateException Error but I have no clue why. I am making a game where I want a match to be 1 turn each player. So, if you play with me and I started the match, then…
0
votes
1 answer

How to wait until Game Center match data has downloaded before showing UI

I am creating a turn based game using Game Center and GKTurnBasedMatch. To display the list of games in a table view in my root controller, I'm calling the following method: -(void)reloadTableView { self.matchesTable.hidden = YES; …
Eatton
  • 455
  • 4
  • 20
0
votes
1 answer

Game Center Turn Based matches. Multiple type match inside one game?

Im extending my game with Game Center turn based matches. However my game got 4 game mode and I woud like to make a Multiplayer mode for all. I have successfully made the first mode however if I try to load an another…
0
votes
1 answer

Creating a GKTurnBasedMatch with a mix of invited and auto-match players

The Game Center turn-based matchmaking interface allows a user to create a match with a number of players and fill some of those places with invites to friends and leave the others for auto-matching. I am creating our own in-game match creation…
Chris Nelson
  • 466
  • 5
  • 4
0
votes
2 answers

Show banner from top of the screen

I want to create a turn-based match. When player received a notification player:receivedTurnEventForMatch:didBecomeActive: I want to show a banner that slides from the top of the screen. "Your turn. Play" similar to the banner that Game Center…
Sasha Shumylo
  • 137
  • 1
  • 8
0
votes
1 answer

How do you determine 'side' for turn based iOS games?

When creating a game with sides, checkers for example, the local player needs to be given white or black to play with. If you want game centre to auto match against participants who either picked or were assigned the other side, how do you do that?
conorgriffin
  • 4,282
  • 7
  • 51
  • 88
0
votes
1 answer

Custom Game Center GKTurnBasedMatchmakerViewController

I'm trying to create a custom view controller to display active games to the user (similar to what Letterpress does). I am currently trying to subclass GKTurnBasedMatchmakerViewController except I don't know how to hide the default elements (for…
Steven Ritchie
  • 228
  • 1
  • 2
  • 12
0
votes
1 answer

Determining gender of GKPlayer

I'm working on an app and I want to display a male symbol or female symbol for a list of GKPlayers whose photo's can't be returned from GameCenter. Is there a way to determine the gender of a GKPlayer?
aahrens
  • 5,522
  • 7
  • 39
  • 63
0
votes
1 answer

IOS Game center match making

I am working on a turn based game with game center. I researched patiently the following problem, but i hope someone comes with a solution. I start an auto-match game with a certain map, i would like to connect to only the players whom selected the…
Macaret
  • 797
  • 9
  • 33
0
votes
1 answer

How to force create new match in GKTurnBasedMatch

I want to let the user to either create new match or join existing matches which are created using create new match, all to be done programmatically. My question is how can I force game center to only create a new match ? The code which apple…
mbrmj
  • 119
  • 10
0
votes
1 answer

ERROR: You are not the current participant. When I am the current participant. What?

I'm working on a turn based iOS game and am getting a weird error. It says I am not the current participant when I have actually verified that I am indeed the current participant. Here I check to see if I am the current participant, and this outputs…
Logan Shire
  • 5,013
  • 4
  • 29
  • 37
0
votes
3 answers

How to determine if score for the match has been submitted

I am working on a turn based game which uses game center. I do not save any match data locally. While the game goes on, one of the players ends the game and submit score for him self. When the other player launches the game, he gets all matches from…
Mert
  • 6,025
  • 3
  • 21
  • 33
0
votes
1 answer

Good Practice to save game center data (GKTurnBasedMatch)?

I am making a game app with game center. I would like to ask what is the good practice for saving game data like whole object (GKTurnBasedMatch) in app? Since, there is matchData for each of the match. I am planning to save this GKTurnBasedMatch…
justicepenny
  • 2,004
  • 2
  • 24
  • 48
0
votes
1 answer

Updating Turns in GKTurnBasedMatch with NSData

I'm trying to creating a 2 player Turn Based Match game. The players can currently take turns, but data isn't actually being populated into NSData. I found this method on how to archive and serialize, but I feel like I'm just going about it wrong…
Edward Glasser
  • 183
  • 4
  • 17
1 2 3 4 5 6
7