I'm currently attaching a leaderboard and weekly reward to one of the minigames in our game. I wanted to ask if this is the best method to handle it.
Friends have been set up according to the Social friends system on another tutorial (a users friends are set up in a team).
A Leaderboard has been created for the minigame, and players send their scores.
We will display the top 10 global rank, but also the rank of players within their team.
At the end of the week, we will run cloud code that will go through each player in the leaderboard, and work it if they are the top player in their friends list (using SocialLeaderboardDataRequest), and if they are, award them their prize.
My main worry is the amount of time it will take to run the analysis of winners every week, I don't want the cloud code to time out.
Also, since the social friends tutorial is not officially part of the API, but a workaround, does this mean the social function of the leaderboards will not work for this set up?
Thanks,
Graeme.
Best Answer
G
Graeme Laws
said
over 5 years ago
I've worked out much of it, the social part of it works perfectly.
1 Comment
G
Graeme Laws
said
over 5 years ago
Answer
I've worked out much of it, the social part of it works perfectly.
Graeme Laws
Hi,
I'm currently attaching a leaderboard and weekly reward to one of the minigames in our game. I wanted to ask if this is the best method to handle it.
Friends have been set up according to the Social friends system on another tutorial (a users friends are set up in a team).
A Leaderboard has been created for the minigame, and players send their scores.
We will display the top 10 global rank, but also the rank of players within their team.
At the end of the week, we will run cloud code that will go through each player in the leaderboard, and work it if they are the top player in their friends list (using SocialLeaderboardDataRequest), and if they are, award them their prize.
My main worry is the amount of time it will take to run the analysis of winners every week, I don't want the cloud code to time out.
Also, since the social friends tutorial is not officially part of the API, but a workaround, does this mean the social function of the leaderboards will not work for this set up?
Thanks,
Graeme.
I've worked out much of it, the social part of it works perfectly.
Graeme Laws
I've worked out much of it, the social part of it works perfectly.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2485 topics