gamekit Questions
5
Solved
I am trying to create my app on iTunes Connect, so I can add my game center features. When I reach the screen where I fill in the default language, app name, sku number, and bundle id, I receive an...
Dorelle asked 20/11, 2013 at 2:48
1
I am developing a small word game as a side project and chose Flutter to release the game for both Android and iOS. I am able to use flutter packages (e.g. https://pub.dev/packages/games_services) ...
Dora asked 16/12, 2020 at 18:19
3
I created a tester app to test adding a GameCenter leaderboard to a simple SwiftUI game I am creating. I have been unable to figure out how to display the Game Center leaderboard with all the score...
Asshur asked 6/11, 2019 at 2:5
2
Solved
I am creating a game using swift on apple's Xcode 6 beta 6, and trying to add the high score of my game to gamecenter leader boards. I have created the leader boards in gamecenter.
So, how do I a...
Jacynth asked 28/8, 2014 at 1:24
1
Solved
I'm trying to use GKOctree for efficient retrieval of object in 3D space. However the following code doesn't seem to work as expected:
import GameplayKit
let tree = GKOctree(boundingBox: GKBox(
...
2
Solved
I have the below code to authenticate a local player in Game Center in my SwiftUI app. I want Game Center to prompt user to login if the player is not already login in but this doesn't happen.
clas...
Phenoxide asked 25/9, 2020 at 17:38
2
Solved
I get the error:
Error Domain=GKErrorDomain Code=27 "The requested operation could not be completed because you are not signed in to iCloud" UserInfo=0x1889f160 {NSLocalizedDescription=The reque...
3
I'm trying to invite nearby players to a match, but the invite is either never sent or never received.
GKMatchMaker startBrowsingForNearbyPlayersWithHandler works and returns nearby players that ...
Supercharger asked 19/4, 2016 at 20:13
1
I implemented GameKit into my iOS game including the saved game feature.
Here an example how I save and load a game:
MobSvcSavedGameData.h
#ifndef MOBSVC_SAVEDGAMEDATA_H
#define MOBSVC_SAVEDGAME...
Engraving asked 24/10, 2018 at 17:42
6
I did not find a way in the GameKit documentation to delete a player's score from within my app. Is this possible?
2
Solved
In objC the syntax written by Rawendrich for GKTurnBasedEventListener, which was GKTurnBasedEventHandler there at that time, now changed by Apple is as below.
if (!gameCenterAvailable) return;
...
Salazar asked 3/7, 2017 at 15:13
1
Solved
If I try to change the value of the speed parameter of a GKAgent2D (or its parent class GKAgent) in iOS9 I get this unrecognised selector error:
*** Terminating app due to uncaught exception 'NS...
4
Solved
So I am a relatively new iOS developer but thanks to Stackoverflow, i managed to get peer to peer data communication for my app working without the need of a server using gamekit/GKSessions.
Basic...
3
Solved
I've been reading up on how to transfer data between iOS devices over Bluetooth using GameKit. I'm not writing a game, per se, but do have a need to transfer a small amount of binary data between t...
4
Solved
I have the following code that I have been using before to handle invitations:
[GKMatchmaker sharedMatchmaker].inviteHandler = ^(GKInvite *acceptedInvite, NSArray *playersToInvite) {
// Insert ga...
Hautbois asked 13/12, 2013 at 12:56
1
Solved
GameCenter has been working fine before release when updating the high scores. Now, it has been over 24 hours and the highscores will not update at all. Instead, it only shows my score in "Today" a...
Whitney asked 11/2, 2017 at 23:6
1
Solved
I've been researching Apple's state machine for Swift and found several examples, but none of them really dead simple.
Could someone whip up a super simple GKStateMachine, perhaps with two states,...
Kandis asked 15/1, 2017 at 1:1
1
I want to save game data with GKLocalPlayer and saveGameData method.
[localPlayer saveGameData:playerData withName:@"SolarFlares" completionHandler:^(GKSavedGame *savedGame, NSError *error) {
if...
Cattycornered asked 27/11, 2014 at 21:8
4
Solved
I've been developing a game using SpriteKit and Swift but I seem to be having trouble determining what the real differences are between the GameViewController and any one of my SKScenes. I'm trying...
Austenite asked 25/8, 2016 at 18:0
2
Solved
I'm pretty new to Swift and I'm having some trouble implementing a leaderboard into my game. I just watched a tutorial: 'Game Center Leaderboards! (Swift 2 in Xcode)' in which the GameCenter inform...
Irremissible asked 25/8, 2016 at 15:37
1
Solved
I started investigating this issue with this question which was partially resolved in the iOS 9.2 SDK.
However, upon further investigation, I realized that this framework was still not working as ...
Peppers asked 21/1, 2016 at 21:10
2
I'm interested in connecting to iOS-based devices over Bluetooth. I can see that the "Local Network" service is exposed, but I cannot find any extra information about it. Property stored under key ...
Pomcroy asked 9/11, 2011 at 20:15
3
How to get score of local player from Leaderboard Game Center? I tried this code, but it returns nothing. Anybody know how to solve it, or is there better way how to get score?
- (NSString*) getSc...
Dunno asked 5/2, 2014 at 23:46
1
As the apple guidelines said; I've implemented the GKLocalPlayerListener protocol in my game center class and add the local player as listener as soon as he's authenticated:
func authenticationCh...
Barnhill asked 6/8, 2015 at 6:58
0
I am trying to subclass GKGraphNode2D to also include different penalties for different terrains (in the costToNode method). When I create a new GKGraph with an array of my new subclass and call fi...
Pacer asked 31/8, 2015 at 18:30
1 Next >
© 2022 - 2024 — McMap. All rights reserved.