Search code examples
androidmysqlgoogle-play-servicesleaderboard

Google Play Services Game Leaderboard


I cannot seem to find an answer anywhere else, so I am asking here hoping that someone would know.

With google leaderboard, I need it to sort by both high score and fastest completion time, is this possible?

example:

Player: Sally Score: 50 Time: 1:12:00

Player: Mike Score: 50 Time: 1:15:00

Player: Don Score: 50 Time: 2:22:00

I am currently do this using my own table and code with my website MySQL, but wanted to move to google play services leaderboard if it can do this.

Thank you.

off-topic: I think the confusion is that I was not asking how to code anything, I was asking if it was possible (if anyone knew of a way), using the google play services leaderboard, to have a leaderboard that sorts by not just a high score or fastest time, but both on the same leaderboard as in my example. I asked this in the google developer forum, and they suggested I ask here, go figure....


Solution

  • you would have to make 2 leaderboards, one for time and one for score, after you do that you can query them each for highest, lowest, certain player, whatever, yes you can do that though, just a little different then your doing it with mysql, you would have to make 1 leaderboard for score and 1 for time