gamecenter -> get local player score from leaderboard

hy,

i already have gamecenter working, shows leaderboard and posting highscores. What i need to know is: if exits , how to get the score from the leaderboard from the local player, i want to make a leaderboard of total wins, if a player wins a game, then i go get the number of wins from the leaderboard of the local player, add + 1 victry and set new highscore.

thks,
Edou [import]uid: 92107 topic_id: 22478 reply_id: 322478[/import]

Use some combination of gameNetwork.request( “loadScores” …) and storing their data persistently (I’d recommend Ice if you’re not familiar with this already). Then load the current value, and submit that number + 1. [import]uid: 87138 topic_id: 22478 reply_id: 89714[/import]

already found a better way in the api docs, just loadscores an then you can use the event.localPlayerScore.value to get the player score.

Now i need to now how to put a time value in to the leaderboard? anyone knows? already made the leaderboard with a time type score.

edit:already found it out, just send the seconds :smiley:
thks,
edou [import]uid: 92107 topic_id: 22478 reply_id: 90189[/import]