A downloadable asset pack

Download NowName your own price

dreamlo's free instant leaderboards system is a great Unity asset, but doesn't quite work out the box as you might expect. The two major problems I encountered were:

  • Players were able to spam the leaderboard with the same score by just changing their username.
  • Players were able to overwrite other people's scores by using the same username.

This script sets you up with functionality to work around these issues. It generates a unique player ID and uses the short text variable of the leaderboard to check if a player already has a score on the board, and if so, will delete the old score and write the new one. Using the same name of an existing score with a different ID will not be allowed.

This script is only a starting point, you will have to edit it suit your unique project needs and provide your dreamlo information. It is meant to run in whatever scene you have your dreamlo prefab object in. It includes functionality such as populating a list of names/scores text objects, and using data from an input field for getting the player name, but you can ignore all that and use only the SendHighScore function with whatever variables you like.

If you prefer to view the code and how it works rather than download the zip, you can view it here on github.

IMPORTANT NOTES:

  • Personally, I was not able to get the Unity web requests to work without paying for SSL for my leaderboard. The dev didn't answer my question about this so I won't be able to assist you if you are using the free version and encounter errors. At $5 for ongoing support I'd say paying for SSL for your board is well worth it! dreamlo's dev is quick with responses, after donating I got SSL access for my board in less than 24 hours.
  • This script uses TMPro. You can change all TMPro references to legacy text or remove them entirely if you need to.

Hope this helps someone! There is no need to credit me but it is always appreciated. Good luck making your games!

-

Background image by: [freepick]

Published 4 days ago
StatusReleased
CategoryAssets
AuthorMILKSHAKEBATTLECAT
Tagsdreamlo, leaderboard, Unity

Download

Download NowName your own price

Click download now to get access to the following files:

DreamloHelperCat.zip 4.9 kB

Leave a comment

Log in with itch.io to leave a comment.