Sign In Register

How can we help you today?

Start a new topic
Answered

Weekly leaderboard rewards

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.


Best Answer

I've worked out much of it, the social part of it works perfectly.

1 Comment

Answer

I've worked out much of it, the social part of it works perfectly.