Sign In Register

How can we help you today?

Start a new topic
Answered

Replacing a user's score, even if lower than existing score

Hello,


I've got a working leaderboard out in the wild (for the game Mini Metro) but now I'd like to add the feature to reset a user's score on a leaderboard (i.e., either remove it or set it to 0). Right now when you post a score it will only store if it it higher than the existing score.


I've spent half a day trying to figure out how do achieve this with little success so far. Has anyone done this before?


Thanks,


Robert


Best Answer

Hello Robert Curry,


Have you tried deleting the entry and the running total associated with it? You can find the documentation to do so here.


Additionally if you find that you want to do this manually, you can use the Leaderboards Manage Section in your game.


Finally you can define your own custom Running Total, and rather than tracking the maximum value posted, only track the last value posted.


Let me know if this helps you.


Mantas


Answer

Hello Robert Curry,


Have you tried deleting the entry and the running total associated with it? You can find the documentation to do so here.


Additionally if you find that you want to do this manually, you can use the Leaderboards Manage Section in your game.


Finally you can define your own custom Running Total, and rather than tracking the maximum value posted, only track the last value posted.


Let me know if this helps you.


Mantas

Well there is a way to set a field to *Last* which should bring up the last value sent by my event... Just asking...  how can I access that value in a leaderboard?

Hello,


Thanks so much! That worked a treat. I just added some cloud code to be run when I call my setScore event that checks for a "force" variable, if that is set then I delete the user's leaderboard entry.


Regards,


Robert

Login to post a comment