+3 votes

There are some modules for GGPS leaderboards for Android avaible for Godot (QA post). None of them offers much functionality. In my app I would like to show player's position on leaderboard and aslo indicate total number of users, something like this: your rank is 10th / 2345, first number is current rank, second number is total number of users (or total number of scores).

There are some fucntions in Google APIs for Android (getRank(), getPlayerRank(), getNumScores() - com.google.android.gms.games.leaderboard.LeaderboardVariant), but I can't figure out how to use them. I am not familiar with Java and Android SDK, GGPS, so I am little bit lost..

Can someone point me in the right direction? How can I run these functions on my leaderboard? They have no arguments so I guess first I need somehow make an instance of leaderboard and player score?

Maybe naive question: Does anybody plan to implement this as module?

in Engine by (675 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.