Replacing a user's score, even if lower than existing score
R
Robert Curry
started a topic
over 7 years ago
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
T
Tech Support
said
over 7 years ago
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.
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
R
Robert Curry
said
over 7 years ago
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
S
Sebastian Denzer
said
over 6 years ago
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?
Robert Curry
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
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
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstTech Support
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
Robert Curry
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
Sebastian Denzer
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?
-
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 2487 topics