Hi Devs,
TL;DR I'm trying to implement a leader board system like candy crush.
So, per level basis, I'd like to display how my friends are doing, if I beat them, if they beat me, etc.
Is that something your platform supports out of the box? Any suggestions on how to approach this?
Cheers,
H
Oh and I'm planning on having 100's of levels. Like a series of mini games. Game progression is gonna be something like TWO DOTS.
Answer by Brendan · Oct 31, 2017 at 02:19 AM
Yes, you can use https://api.playfab.com/documentation/client/method/GetFriendLeaderboard to get the scores for your friends. And since all the statistics for each player can be returned as part of the profile data (Settings->Client Profile Options), you could get that info with one API call.
Wow @Brendan, you're a legend, I was expecting an answer from you since I see you everywhere in this forum, but didn't expect it this fast.
Anyway, some follow up questions:
- So does this mean I need to create 100's of "statistics" for 100's of levels in order to achieve this? (since every level is having a different level of difficulty)
Basically statistics and leaderboards are 1-to-1. So if you need to track on a bunch of stats, and you want each to be a leaderboard, then yes, you would need to add them as statistics.
Thanks @Brendan, hopefully last question. Is there a limit on leaderboards/statistics? Am I correct that there's only one stat per leaderboard?
Thanks a lot!
OffTopic help. Regarding Facebook Friends profile pictures. 1 Answer
Updating Online / Offline status of player? 1 Answer
Private Groups 1 Answer
Photon + PlayFab matchmaking parties (invite friends) 2 Answers
When do Leaderboards reset? 3 Answers