Discuss Scratch

019482
Scratcher
100+ posts

Detailed guide to using my cloud leaderboard engine


https://scratch.mit.edu/projects/627506490/

WARNING: 18 character name limit

1. Import “control” and “leaderboard system” sprites into your project.

2. Next if you already have a PB (personal best variable):
when green flag clicked
forever
set [Best score] to [PB]
end

put the code above in any sprite, PB variable represents a personal best NOT a world record.

2. If you don't:
when green flag clicked
forever
if <[High score] < [score]> then
set [High score] to [Score]
end
end
The script above is a PB setting loop that should work

3. Your done with the basics, now whenever you get a PB record that makes it on to the leaderboard you will have a score that works for the leaderboard.

Last edited by 019482 (Jan. 16, 2022 03:09:27)

Powered by DjangoBB