Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » highscore
- SilverWarrior106
- Scratcher
42 posts
highscore
how do make a world high score like for example lets just use a button game for instants you have to break the high score of the highest world score how do you do that
OLD NEW FOREVER
- elcooler
- Scratcher
24 posts
highscore
Hmm… If you want a WHS (World High Score) try this.
The block of set… to … the WHS must be a cloud variable
when green flag clicked
forever
if <(Score) > (☁ World High Score)> then
set [World High Score v] to (Score)
end
end
The block of set… to … the WHS must be a cloud variable
When I start using scratch
forever
look all projects and (love, favorite or comment) in all my projects
and also follow me ;)
end
when green flag clicked
turn cw (15) degrees
broadcast [spin v]
when I receive [spin v]
turn cw (15) degrees
broadcast [spin v]
stop [only this script :) v]
Infinite spin script without forever block
- 78ch3
- Scratcher
1000+ posts
highscore
Make a cloud variable like this:
To make I high scores board, create a list:
Anyway, this is all you need to know, so go make that project
(@cloud World High Score)Then a script like this:
when gf clickedThis allows you to set a high score for people to beat.
forever
if <(Score) > (@cloud World High Score)> then
set [☁️ World High Score v] to (Score)
end
end
To make I high scores board, create a list:
(High Scores::list)Then a script for it:
when gf clickedThis is how to make a functioning high score system. Here's another script you need too(just remember to make a title page):
forever
if <(Score) > [1000]> then // set the number to whatever you want
wait until <(stop game) = [1]> // create a variable that allows you to stop the game when above 0
add (join (username) (join [: ] (Score))) to [High Scores v]
end
end
when gf clickedThis will hide the list of high scores and the world high score.
forever
if <(backdrop name) = [Title page]> then
hide list [High Scores v]
hide variable [☁️ World High Score v]
end
end
Anyway, this is all you need to know, so go make that project
Sup, I’m 78ch3, person on the internet, TBGForums Member, owner of 78ch3's Everything Shop™ + The United Shops Of Scratch + Scratch Shop Reviewers Federation, and a very lazy person in general (IDK why). My pronouns are she/they for anyone interested. The bold orange words are links. Click them plz
Click here to find out how to get into any scratch account, without the password
Liquid Metal LLC - Information, Investigation, Infiltration /|\ Click to join the Advanced Stealth Combat RP /|\
My PC: AMD Ryzen 7 5800X, AMD Radeon RX 6800XT ROG Strix Liquid cooled OC edition, ROG Strix x570-E Gaming, Corsair Vengeance Pro 32GB DDR4 (4x8GB), Seagate FireCuda 520 PCIe Gen 4 NVMe (500GB), Crucial P2 PCIe Gen 3 NVMe (1TB), Corsair HX1000, Gigabyte G34WQC, RIG 800HD.
I mostly play Fortnite, Minecraft, the Touhou Project series and Terraria
Oh, you won’t see this without a ctrl+shift+down.
People need better thumbnails.
Also there's a lot of anti-kumquat equipment but the kumquats are too scared to come within 100 kilometres of me.
- 78ch3
- Scratcher
1000+ posts
highscore
My idea. Hmm… If you want a WHS (World High Score) try this.when green flag clicked
forever
if <(Score) > (☁ World High Score)> then
set [World High Score v] to (Score)
end
end
The block of set… to … the WHS must be a cloud variableWhen I start using scratch
forever
look all projects and (love, favorite or comment) in all my projects
and also follow me ;)
end
Sup, I’m 78ch3, person on the internet, TBGForums Member, owner of 78ch3's Everything Shop™ + The United Shops Of Scratch + Scratch Shop Reviewers Federation, and a very lazy person in general (IDK why). My pronouns are she/they for anyone interested. The bold orange words are links. Click them plz
Click here to find out how to get into any scratch account, without the password
Liquid Metal LLC - Information, Investigation, Infiltration /|\ Click to join the Advanced Stealth Combat RP /|\
My PC: AMD Ryzen 7 5800X, AMD Radeon RX 6800XT ROG Strix Liquid cooled OC edition, ROG Strix x570-E Gaming, Corsair Vengeance Pro 32GB DDR4 (4x8GB), Seagate FireCuda 520 PCIe Gen 4 NVMe (500GB), Crucial P2 PCIe Gen 3 NVMe (1TB), Corsair HX1000, Gigabyte G34WQC, RIG 800HD.
I mostly play Fortnite, Minecraft, the Touhou Project series and Terraria
Oh, you won’t see this without a ctrl+shift+down.
People need better thumbnails.
Also there's a lot of anti-kumquat equipment but the kumquats are too scared to come within 100 kilometres of me.
- asivi
- Scratcher
1000+ posts
highscore
Why to spam the cloud servers resetting the cloud variable in a forever loop? You can do it at the end of game.
- -Fornax-
- Scratcher
100+ posts
highscore
Tip: don't use wh n flag clicked forever bc it will glitch. Do something like when I revive game end
- Discussion Forums
- » Help with Scripts
- » highscore