question

brendan avatar image
brendan asked

Knocking others off the leaderboard

Question from a developer:

The leaderboard in my game needs to be able to have the following functionality:

A player can be eliminated from the leaderboard when another player scores the same score after them. For example, if Adrian scores 10 and goes to 1st place then later that day David scores 10, Adrian is eliminated from the leaderboard.

Can this be done using your backend?

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

·
brendan avatar image
brendan answered

Currently, you cannot remove a statistic from a player entirely, but you could use a Cloud Script (server side code) to set that player's score to 0. However, if multiple people were to submit the score 10 at the same time, the logic you use to remove the other player wouldn't have any way of knowing about that.

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.