leaderboard help

Hello experts,

I am new in corona and I already created and uploaded 1 game in the Google Play and App Store call Math Puzzle. Now I want to upgrade to add a timer, how much time they comsume to resolved the puzzle and publish a list of users and there achieved time.  Based on the time spend the lowest time is the high rank in the list published.  I read about the leaderboard and I saw it and its the way exactly my requirements. When I try to find and search and discussion, explanation, configuration, and coding, it seems that I am soo slow at the moment because I honestly say I did not get it. Can anybody help me? I have a file like “timeachieved.txt” within this file saved the lowest time the user played or resolved the puzzle. I know already how to create, save data to a file, and retrieved data from a file. So what I need is how to publish it by using the leaderboard.

By the way, I dont have any information of the player in my puzzle game code, they tell me you can get it by the phone itself like andriod its registered the gmail account.

can somebody share me a code and explains me in elementary?

thanks in advance…

Hi @jilvir_paeste,

You don’t need to get player info for that, so don’t worry.

I suggest using GGLibs(GGGameCentre) for that matter, it really saves you a lot of time(thanks to Graham Ranson for that). With a little bit of modification, you can also make it work for Google Play Game Services, too. Here is a reference point for the modification, not so much work needed to be done. -> http://coronalabs.com/blog/2013/06/25/tutorial-introducing-google-play-game-services/

What happens: player logs in (automatically on iOS Game Center and Google Play -after asking the player for the first time on Google Play-) and then player can get your programmed achievements. You need to enter information about those achievements on your Google Play Dev account.

Basically, that’s what happens :slight_smile:

Hi @jilvir_paeste,

You don’t need to get player info for that, so don’t worry.

I suggest using GGLibs(GGGameCentre) for that matter, it really saves you a lot of time(thanks to Graham Ranson for that). With a little bit of modification, you can also make it work for Google Play Game Services, too. Here is a reference point for the modification, not so much work needed to be done. -> http://coronalabs.com/blog/2013/06/25/tutorial-introducing-google-play-game-services/

What happens: player logs in (automatically on iOS Game Center and Google Play -after asking the player for the first time on Google Play-) and then player can get your programmed achievements. You need to enter information about those achievements on your Google Play Dev account.

Basically, that’s what happens :slight_smile: