Discuss Scratch

josueart
Scratcher
100+ posts

How can I make a highscore system?

Hello how can I make a highscore system?
Thanks for reading


Check this Scratch status monitor I made with BetterStack: https://scratch.betteruptime.com
CornyPun
Scratcher
14 posts

How can I make a highscore system?

You would want to first have a cloud variable that stores the highscore. Next, you would want to check if the player's score is greater than the highscore, and if so, change the highscore to the player's score.

Been coding on/off for 2 years, somewhat experienced.

[/url
josueart
Scratcher
100+ posts

How can I make a highscore system?

CornyPun wrote:

You would want to first have a cloud variable that stores the highscore. Next, you would want to check if the player's score is greater than the highscore, and if so, change the highscore to the player's score.
Thanks for all


Check this Scratch status monitor I made with BetterStack: https://scratch.betteruptime.com
CornyPun
Scratcher
14 posts

How can I make a highscore system?

You're welcome!

Been coding on/off for 2 years, somewhat experienced.

[/url
thefoxyflamingfox
Scratcher
14 posts

How can I make a highscore system?

Use the block "If (score) is greater than (highscore), set (highscore) to (score). That should do it.

Generation 7: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.
Be your best you. Foxes are cute!
josueart
Scratcher
100+ posts

How can I make a highscore system?

Thanks for all

Last edited by josueart (Feb. 7, 2022 18:33:50)



Check this Scratch status monitor I made with BetterStack: https://scratch.betteruptime.com
dj_greener
Scratcher
100+ posts

How can I make a highscore system?

when green flag clicked
forever
if <(score)>(☁ highscore)> then
set [☁ highscore v] to (score)
end
end

when green flag clicked
repeat until <cat blocks come back :: operators>
hope [cat blocks come back] :: looks
end
emotion [extremely happy v] :: looks
wait [5] secs
die of [cuteness v] :: looks

when [died v] :: events :: hat
revive :: sensing
repeat until <cat blocks disappear again :: operators>
pet [cat blocks v] :: looks
end
press @greenFlag :: events :: cap

Powered by DjangoBB