GameCenter - two questions about the new SDK features

Hi

Firstly, let me say Corona is incredible. I truly believe I have saved months of dev time thanks to a) the incredible community; b) the great technology!

I am using the new GameNework functionality and I have two questions:

  1. When the user presses “Scores” on my title screen, I call this:

storyboard.gameNetwork.show( “leaderboards”)

This shows the default leaderboard. I have four leaderboards and I want there to be no “default”. In otherwords, I want to show the screen that just shows the four leaderboards and lets the user decide which to look at. Is it possible?

  1. When I want to save a high score I call this:

gameNetwork.request( “setHighScore”, { localPlayerScore = { category=“score_table_1”, value=player.score}})

But when I go in to the leaderboard, the scores are not there. However, I can tell something has been modified because the text underneath the leaderboard changes from “Not Ranked” to “#1 of 1 player”. So I can tell my table has been modified, but viewing the leaderboard shows no scores.

Also, I am using the xcode simulator with sandbox account. Don’t know if this makes a difference.

Any ideas? Thanks! [import]uid: 107380 topic_id: 21765 reply_id: 321765[/import]

(Is gameNetwork really under storyboard?)

I haven’t seen any way to go to a top level leaderboard. All the APIs are exposed so if there is a way, you should be able to access it. If you are desperate, you could always create your own UI. You have all the API access needed to completely create your own custom interface to Game Center.

  1. In my testing, it can take about a day for scores to actually post through Apple’s leaderboard display. And I’ve also noticed scores can disappear within this time period. And if you set multiple scores, they can toggle back and forth. This is probably just how Apple deals with multiple Game Center servers which allow for the possibility that they can be out of sync. Just be patient.

[import]uid: 7563 topic_id: 21765 reply_id: 86439[/import]

ewing,

I put gameNetwork under storyboard, it correct (in this case)

I discovered the problem with the scores updating. When you test the Game Center functionality under XCode (running, I assume, IOS5) the scores do not appear if you have only registered one Game Center account in the Sandbox.

As soon as I created another account, and posted a high score with it, all the scores of the first account suddenly showed up. (This behaviour has been verified by other devs on other forums.)
Regarding the first question, I would appreciate if anyone has any advice on how to show the root leaderboard screen. It doesn’t make sense if I have four leaderboards, one per level, and when the user presses “Scores”, the Level 1 leaderboard immediately loads up… it would be confusing for the user…

Any help appreciated, thanks!
[import]uid: 107380 topic_id: 21765 reply_id: 86446[/import]