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
1
vote
0 answers

Game Center Turnbased Matchmaking Issues

So I'm working on a turn based game, utilizing game center. I have most of the ins and outs figured out. However, when a player resigns from the match GameCenter automatically tries to fill that players slot with a player searching for a match. I…
user1311199
  • 119
  • 1
  • 1
  • 9
1
vote
2 answers

How to receive turnbased matchData while entering game through gamecenter app?

I am using GKTurnbasedMatchMakerViewController to start a new turnbased game or check the existing ones and that is working perfectly fine. However I am stuck at this case scenario: Suppose pleayer opens the gamecenter app in his mobile and sees an…
Rohit Goyal
  • 1,521
  • 3
  • 24
  • 49
1
vote
0 answers

Instantiated GKLocalPlayerListener

Most turn based match Game Center examples include singeltons, usually called humhumHelper, or something equivalent. Am I looking for trouble if I try do do it in a more dynamic way? One example is that I register a listener in the init function of…
Fredrik Johansson
  • 1,301
  • 1
  • 13
  • 26
1
vote
0 answers

Hide opponents' scores in a TurnBasedMatch

How can I go about hiding an opponent's score from a user in a TurnBasedMatch? To elaborate a little further, I have created a UI that displays all the players in the match. It displays their pictures, their names, and their scores. For every player…
SydStorm
  • 68
  • 7
1
vote
1 answer

GKTurnBasedMatch Network Issues

I've been trying to implement a way to notice when my app gets disconnected from Game Center since ending a turn while disconnected breaks the app. I just started testing on my iPad with the WiFi off and noticed that even when I completely quit the…
Nexus
  • 111
  • 4
1
vote
1 answer

Google Play Game Service Mutli player Invitations not received

I am currently working on a turn based multi player game and using Google Play Game Service for this. All set up has been made. Users can login properly and and select the players to compete with. After the selection when user presses Play button…
1
vote
2 answers

Starting the first turn of Turn Based Game Center game

I have a game I am working on that is turn based between exactly 2 players. I am a bit confused as to how to send the player order if this is the first round and a player hasn't been found yet. - (void)endTurnWithNextParticipants:(NSArray…
George L
  • 1,673
  • 2
  • 26
  • 39
1
vote
0 answers

How implement auto match of Game Center on iOS

I make the turn-based game on Game Center. When I search another user through auto-match function, does GameCenter search another user that this game was installed or user that have free time? Because when I implement auto match feature on turn…
Chenggong Jin
  • 531
  • 1
  • 4
  • 9
1
vote
1 answer

Show the tooltip when mouse over at the object unity3d

i wanted to show the tooltip like this when the mouse over at the object, here is the example image: and i already tried this below code, but the message on the debug.log didn't showed up when i am hovering my mouse to the object, the object i…
Kaoru
  • 2,853
  • 14
  • 34
  • 68
1
vote
1 answer

End a turn in Game Center turn based match.

I´m having troubles with ending turns in my turn based game app. The method I´m using is GKTurnBasedMatch *currentMatch = [[GCTurnBasedMatchHelper sharedInstance] currentMatch]; [currentMatch endTurnWithNextParticipants:p turnTimeout:1000…
marsrover
  • 715
  • 11
  • 27
1
vote
1 answer

RubyMotion and GameKit for turn-based game

I'm new to RubyMotion and although I found some good tutorial I cannot find anything about using RubyMotion with GameKit and GameCenter. The Context: I have done a Tic-Tac-Toe game to learn RubyMotion. The game works fine locally, but I want to add…
Olivier
  • 921
  • 10
  • 19
1
vote
1 answer

Gamekit turn based game

I plan to give another try to one of my iOS board game, it was built around the GameKit's turn based API. I would like to offer the best game experience by limiting the amount of time available for each turn. From here, is it possible with the turn…
Cyril
  • 1,649
  • 1
  • 17
  • 32
1
vote
0 answers

How do I implement turn timeout with gkturnbasedmatch

I want to implement a turn timeout feature in my game center app. It should give each user a 30-60 sec time to complete their turn and if not they should be treated as they quit. I tried using the timeout parameter of endTurnWithNextParticipants but…
guenis
  • 2,520
  • 2
  • 25
  • 37
1
vote
1 answer

Game Center Turn Based match list not showing when offline

I am using custom view to show the list of matches in my turn based game. With the custom view I am having issues showing the list of current games the player is involved when the device is offline. But when I check the game center default view the…
user2327003
  • 103
  • 5
1
vote
1 answer

Localized GKTurnBasedMatch message

The message property of GKTurnBasedMatch allows changing the text in the push notification that the next participant receives, but how can I localize it? I tried using Localizable.strings but that doesn't work. I know that regular push notification…
Rits
  • 5,105
  • 4
  • 42
  • 53