ScratchData LogoScratchData
Back to imfh's profile

Leaderboard Demo

IMimfh•Created March 11, 2019
Leaderboard Demo
33
29
1148 views
View on Scratch

Instructions

Note, the leaderboard appears to have been slightly corrupted... 1. Hit the flag. 2. Wait for the game to start. 3. Press and release button(s) as quickly as possible. Tips: - Only use 1 button as all must be released to score. - Running in turbo mode may help slightly. - Don't hit the flag before your highscore saves. Hotkeys: S - Start a new game. L - Show the Leaderboard. P - Start the player counter.

Description

I have a newer leaderboard in my Forumer Quiz project! It is much more specialized though so it may be difficult to use in your own projects. https://scratch.mit.edu/projects/569286233/ This is a demo project for a stripped down leaderboard engine I've created. Hopefully this will be a good test to help me work out any bugs before the full version. This has been optimized for usernames and scores which gives it a space advantage over cloud lists. It uses 2 digits per username character 2 digits to hold score length and username end + 1 digit per score character. If the average username length was 12 and the score length 2, this could hold about 9 scores per cloud variable. This project uses 7 so it can hold about 63 highscores. It's pretty easy to add this to your project. Simply copy sprite Leaderboard and make sure your project uses a variable named Score. Whenever you want to update the leaderboard and highscore, broadcast "Update Leaderboard." There's more information about how this works and some ideas I have for future versions on the stage. I've also made an experimental player counter which shows how many people are playing at the same time as you.

Project Details

Project ID292804718
CreatedMarch 11, 2019
Last ModifiedOctober 2, 2021
SharedMarch 11, 2019
Visibilityvisible
CommentsAllowed