question

grahamwatson avatar image
grahamwatson asked

How to implement a per-level leaderboard?

Hi,

Our game has thousands of user-generated levels. These levels exist as PlayFab 'characters' that belong to the user. Players can compete on each other's levels.

What we would like to achieve is that each level has a leaderboard, with the best times of all the players in the world for that level, a single entry per user. We would like it to be both global and filtered to friends, with the ability for the client to retrieve the top N entries or the N entries surrounding the current player.

How can we achieve this please?

Regards

Graham

Leaderboards and Statistics
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Do you mean your players can make their own game levels as Super Mario Maker 2? And you want to implement a per-level leaderboard. If you don't consider the number of levels. A possible workaround is using multiple leaderboards to handle multiple levels. But thousands of levels will over the leaderboard limits. If we are in the free tier, the limit of player statistics(leaderboards) is 25. You can navigate to [Game Manager]->[Settings]->[Limits] to check it. If you want to upgrade the limit, you can contact our sales team on this contact page.

About the second question, you would like it to be both global and filtered to friends. PlayFab has some APIs can be used for it. You can check this GetFriendLeaderboardAroundPlayer for more.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.