Discuss Scratch

melvic13
Scratcher
79 posts

how do i make a hisghscore script?

im making a flappy bird remake and i don't really know how to make a highscore script

can y'all show me :3
medians
Scratcher
1000+ posts

how do i make a hisghscore script?

You have to use cloud data (when creating a variable, you can check cloud variable if you are a Scratcher).
Basically you want a code that checks if the high score is lower than score, and if it is, then it will set the high score to the score.
You want it under the green flag or where the game is played, and the code must be in a forever loop or it will only attempt to run once.
These are the blocks you want to use (besides the hat block)

Last edited by medians (Feb. 20, 2023 21:17:25)

YC72909
Scratcher
100+ posts

how do i make a hisghscore script?

I hope this helps:
when green flag clicked
forever
if <[your score] > [cloud highscore]> then
set [cloud highscore] to [your score]
end
end
YC72909
Scratcher
100+ posts

how do i make a hisghscore script?

Make sure to also do this:
when green flag clicked
set [(score)] to [0]
melvic13
Scratcher
79 posts

how do i make a hisghscore script?

YC72909 wrote:

I hope this helps:
when green flag clicked
forever
if <[your score] > [cloud highscore]> then
set [cloud highscore] to [your score]
end
end
tnx i already got it!

Powered by DjangoBB