Hi, I have another question to do with gamecenter,
I am trying to have it so when the player clicks to open the leaderboard, they're brought to the "global" leaderboard instead of "friends".
After doing some investigation, I found out that apple allows you to do this through playerScope.
When I set the playerScope field, it returns the correct value, in this following instance 1... But it wont correlate to the interface and will still display "friends" as the default.
My question is what am I doing wrong?
Thanks for any and all help
I am trying to have it so when the player clicks to open the leaderboard, they're brought to the "global" leaderboard instead of "friends".
After doing some investigation, I found out that apple allows you to do this through playerScope.
GKLeaderboard.PlayerScope | Apple Developer Documentation
Specifies the type of players for filtering data.
developer.apple.com
playerScope | Apple Developer Documentation
A filter that restricts the search to a subset of the players in Game Center.
developer.apple.com
When I set the playerScope field, it returns the correct value, in this following instance 1... But it wont correlate to the interface and will still display "friends" as the default.
My question is what am I doing wrong?
Pull up leaderboard with GKGameCenterViewController:
Dim gc As NativeObject
gc = gc.Initialize("GKGameCenterViewController").RunMethod("new", Null)
gc.SetField("leaderboardCategory", BoardId)
gc.SetField("viewState", viewState)
Dim ac As NativeObject
ac = ac.Initialize("GKLeaderboard").RunMethod("new", Null)
ac.SetField("playerScope", 1)
Log(ac.GetField("playerScope"))
Thanks for any and all help