Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8669045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:22:18+00:00 2026-06-12T18:22:18+00:00

I am working with cocos2d game in which i am implementing Game-kit. My game

  • 0

I am working with cocos2d game in which i am implementing Game-kit. My game supports multiplayer option. Actually as given example Raywenderlich link. I am GKTurnBasedMultiplayer class from Game-kit. But now the issue when first player connected to game center and will select option of “Play Now” it automatches for another player. but issue is it directly connects and starts the match, and doesn’t wait for another player. I am using

[[GCTurnBasedMatchHelper sharedInstance] findMatchWithMinPlayers:2 maxPlayers:4 viewController:viewConroller];

for connecting and playing with other players but directly connects the match.

I want to wait for another player. That is the issue. I am also using GCTurnBasedMatchHelper Class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:22:20+00:00Added an answer on June 12, 2026 at 6:22 pm

    This is intended functionality of the GameKit API. In a turn-based match, the match data is submitted with the first turn, which in the case of an auto-match, is an undetermined player until Game Center finds an opponent after the first submitted turn.

    The logic behind this is the “It’s always your turn” doctrine with turn-based matches. If Game Center matched you with a player before you submitted your first turn, that other player would be invited to a match in which it wasn’t their turn, which is highly undesirable.

    As the Apple docs say, you must account for the circumstance of a match participant playerID attribute coming back nil and handle accordingly in your block code. The opponent will be nil until you receive their turn (which naturally occurs after the creator’s first turn). If you are still confused by this, reference the Turn-Based Game Center API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a game for iPad using cocos2d which involves a board filled
So, here's how it goes. I am currently working on Cocos2d game, which consists
I'm trying to get the MKStoreKit working with my Cocos2D game. It look pretty
Do you know any working port of Cocos2D which could be used by windows
I'm currently working on the interesting example in cocos2d. I have a sprite, that
I am new to Objective-C. I am currently working on a game using Cocos2D
I'm working on a cocos2d game on iPhone. The game work perfectly. Now I
I am writing a small shooting game using cocos2d. It's working good in simulator.
I am working on performance improvement of my ios cocos2d game. I was checking
I'm currently working on a new game for iOS using Cocos2D. The game needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.