gamekit Questions

2

I'm trying to save game's data to iCloud via next code: GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer]; [localPlayer saveGameData:[NSData dataWithBytes:rawData->data() length:rawData-...
Asmara asked 3/12, 2014 at 13:34

3

Solved

I am making a multiplayer game for iOS and I read the material in Apple Developer Center, specifically this one. Here is my code for custom matchmaking, which is pretty straightforward: - (void)fi...
Frear asked 8/4, 2015 at 18:47

1

Using both the frameworks, we can send messages to session.peers using Bluetooth? I am using multipeerconnectivity framework to send messages to my peers, but it usually has a delay of 1.4 sec bet...
Reprieve asked 29/6, 2015 at 6:16

4

According to the Apple docs we should do something like this to handle GC authentication: - (void) authenticateLocalUser { GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer]; if(localPlay...
Kozloski asked 29/11, 2013 at 18:59

2

I'm implementing the StoreKit in-app app purchase interface and though it appears that the SKStoreProductViewController handles landscape on iPad, it does not appear to do so for my app on iPhone (...
Misdirect asked 13/10, 2012 at 2:3

7

Solved

(I am not interested in pure theory, but as a practical near or mid-term possibility, say within 12-24 months.) As a developer familiar with (but not specializing in) two major smartphone platform...
Slav asked 17/1, 2010 at 10:16

1

Solved

Do you guys know any tutorial or code sample that covers using Game Center on iOS 7 for creating live matches? All Apple sample codes are from 2011 (!) and their documentation is incomplete and va...
Huda asked 26/10, 2013 at 7:3

2

I am working on a turn-based GameCenter game. A GKTurnBasedMatch is created with a GKMatchRequest, with minPlayers and maxPlayers set to 2. I get an NSInvalidArgumentException while trying to end t...
Harrow asked 10/10, 2013 at 22:15

1

Solved

I would like to setup a client-server architecture for streaming data between multiple iPhones. For instance, the 'server' iPhone hosts a master list of animals. An arbitrary number of client iPhon...
Melamie asked 3/1, 2014 at 4:53

2

Here's my situation: 1) The user opens my application for the first time. I immediately call authenticateLocalUser to try and log them into Game Center. The popup with the Login, Create Account, a...
Reserve asked 26/4, 2012 at 14:5

2

Thanks to the updates to GameKit API in iOS 6, I am finally able to implement my turn-based board game the way it should be, complete with turn timeouts and better programmatic creation of matches....
Anticlastic asked 28/4, 2013 at 18:14

1

Solved

According to Apple's Game Center programming guide, this code sets up an authentication handler. If you run this at the beginning of your game, the first time you run it, it will prompt the user to...
Latchet asked 5/11, 2013 at 3:35

1

Solved

I want there to be a "Quickmatch" mode in my turn-based game, where the player gets automatically matched with the first player to become available. I'm using my own custom UI. My code so far looks...
Kismet asked 8/9, 2013 at 18:22

2

Alright, this involves a lot of network coding from this part of a multiplayer tutorial. Basically, I'm trying to implement a multiplayer game using GameKit as per the tutorial linked above. I put...
Leah asked 12/7, 2013 at 20:21

2

i have this playlist of the songs in my app.I want to play a song from this playlist on anther device (iphone) using bluetooth. This is what i have done so for #import "BrowseStationsViewControl...
Friesland asked 4/9, 2013 at 5:36

2

I'm creating a real time matches game and I'm confused as to how to deal with game invitations? For instance, a player on one device can invite his friends to a match and then an invitation banner ...
Viola asked 22/1, 2013 at 18:0

1

I have a problem with the GameKit framework. In my app, I want to send a text or an image. Now, when I send an image from UIImagePicker, it works well. When I send text, it does not show the same U...
Lope asked 3/5, 2012 at 13:25

2

Solved

I'm working with GameKit.framework and I'm trying to create a reliable communication between two iPhones. I'm sending packages with the GKMatchSendDataReliable mode. The documentation says: GK...
Vang asked 23/8, 2012 at 10:58

7

Solved

In a game I am developing using GameCenter, I want to handle the following scenario: the user starts up the game. He is shown the system alert that prompts him to log on GameCenter. He ignores it...
Lashawna asked 30/11, 2010 at 18:27

1

Solved

I am having an issue with getting a GKSession to work. Below is my code that is executed when a specific button is pressed. GKSession *session; if (connectButtonHasBeenPressed == false) { NSLog(@...
Oesophagus asked 3/6, 2013 at 13:52

1

I'm using GKSession (part of Game Kit) to connect multiple iOS devices together (over bluetooth and/or wifi), send data, etc which all works fine and I'm happy with it. I was thinking though, it w...
Trooper asked 24/8, 2012 at 12:53

5

I am doing some experimentation to try to learn about GameKit and I made a simple game and an interface which lists my player's matches. I am trying to add the ability to remove games using the rem...
Deming asked 12/3, 2013 at 22:59

0

I am using Game Center in my game for iPhone in IOS 6. I have a tableview with a list of GameCenter´s friends. When I click a friend name, this friend recieve anotificatión (Game Center Notificatio...
Cupel asked 22/4, 2013 at 8:22

3

Solved

I am trying to authenticate a GKLocalPlayer with Game Center. However, the code supplied by Apple - (void) authenticateLocalPlayer { [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler...
Amplification asked 18/9, 2010 at 17:34

1

Solved

I'm trying to implement a real-time multiplayer game with a custom UI (no GKMatchMakerViewController). I'm using startBrowsingForNearbyPlayersWithReachableHandler: ^(NSString *playerID, BOOL reacha...
Meso asked 25/3, 2013 at 19:41

© 2022 - 2024 — McMap. All rights reserved.