What do you set the value to be for the scoreReporter to show up as a correct time in game center leader-board. What do you need to covert the seconds to show up properly in the leader-board. Any help would be greatly appreciated.
Here is the code I have:
GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:@"BestTime"] autorelease];
scoreReporter.value = TotalSeconds * 10;
To Sync game progress across multiple Android devices, you need to Log-In to all devices using the same Google Play Google Services ID and then play the game. To sync your game progress on iOS device: 1. Enter Device Settings, find & select Game Center.
Your friends can see the games that have access to your Game Center account (this works accross multiple devices since you can have a single Game Center account for multiple devices).
Make sure you have connected your game to Game Center. It is the only way to save, recover and sync your progress.
When you sign in with your Apple ID, you will be signed in to Game Center automatically. Game Center allows you to engage in game-related activities such as participation in leaderboards; multiplayer games; finding, viewing, and challenging friends; and tracking achievements.
Seconds are fine if you have defined your leaderboard score format type to "Elapsed time - To the second". You just need
scoreReporter.value = TotalSeconds
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With