Post

Replies

Boosts

Views

Activity

Handling a GKInvite and proceeding with the game
How to I receive and handle a GKInvite and create a GKMatch using that. I already have this code working: let matchRequest = GKMatchRequest()         matchRequest.minPlayers = 2         matchRequest.maxPlayers = 2         matchRequest.defaultNumberOfPlayers = 2         guard let matchMakingVC = GKMatchmakerViewController(matchRequest: matchRequest) else { return         }         matchMakingVC.delegate = self         self.present(matchMakingVC, animated: true, completion: nil) Also how do I continue if the match is ready to start and dismiss the GKMatchmakerViewController. Thanks!
1
0
676
Jun ’20
SKScene not showing entirely on the screen
I am trying to make a landscape game and trying to display the scene in full screen. However for some reason it is not covering up the whole screen. I see 2 big black bars around the scene. My scene background color is different than the background color of the view. (I am using UIKit) My SKScene Dimensions: 1334x750 View Controller Presentation is set to Full Screen. My app's Requires Full Screen Option is also checked. The scaleMode is .aspectFill I think this is happening since I have updated to iOS 14. Please help me out... Thanks!
5
1
2.9k
Aug ’20