question

SK avatar image
SK asked

Players' position change on a leaderboard

Is it possible to get how players' position has changed since last request or on daily/weekly basis?

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

·
Seth Du avatar image
Seth Du answered

Leaderboard is a powerful tool to retrieve lists for given statistics and currently it does not provide with rank change tracking function. However, there are few workaround solutions.

For single player’s leaderboard changes, we suggest you using GetLeadeboardAroundPlayer, and in OnSuccessCallback, you can get the position of a specified player. It is better to store the position data and retrieval date in player data (Read Only or Internal). Please see how to use player data here.

If you want to collect player information every a regular interval, we suggest you create scheduled tasks via Cloud Script. More details are provided at https://api.playfab.com/docs/tutorials/landing-automation/creating-a-scheduled-task. Please be aware of the execution frequency limitation, In case of API calling failure.

For all player’s position changes, we recommend using a database to manage the historical data and write procedures to handle those data.

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.