Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

chs123123

7
Posts
A member registered Nov 24, 2020

Recent community posts

Thank you!

Requesting just your own rank seems to be a regular feature. Because players tend to focus more on themselves than on the top 100 on the leaderboard! And I strongly recommend that you support this feature. Although it seems to work at the moment, it is too restrictive.

If there are a lot of people with the same name on the leaderboard, this does not seem to be efficient. Would you consider adding a feature like requesting your own ranking later?

Hi, I have another question. I use the ByUsername of LeaderboardSearchQuery to query my own ranking. Do you query specific players through userGuid? Otherwise, if there is a player with the same name in the leaderboard, how can I query my own ranking!

Hi, I just want to get my own ranking, what is the right value for Take! Can you tell me the best practice?

(1 edit)

Will there be performance problems if I set this value to a large value? For example, 100000!  Also, can I further expand the number of people the leaderboard can accommodate?

Hi Dan. Please help me! I purchased your premium leaderboard, but I don't know how to use it. It seems to be the same as the free version.

In addition, when I tested the leaderboard, I found that when my rank is after about 100, I will not be able to get my rank alone

My code is:

public static void RequestSelfRank(string key, string userName, Action<bool, int> callback)

         {

             if (!CheckValid())

             {

                 callback?.Invoke(false, 0);

                 return;

             }

             var query = LeaderboardSearchQuery.ByUsername(userName);

             LeaderboardCreator. GetLeaderboard(key, false, query, (rankData)=>

             {

                 var success = true;

                 if (rankData == null || rankData. Length == 0)

                 {

                     success = false;

                 }

                 var selfRank = 0;

                 if (success)

                 {

                     var self = rankData[0];

                     selfRank = self.Rank;

                 }

                 if (selfRank <= 0)

                 {

                     success = false;

                 }

                 callback?.Invoke(success, selfRank);

             });

         }