Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » score help
- Foxy_Fan64
- Scratcher
13 posts
score help
i need help with making a high score tracker for my game i tried on my own and it didn't work pls don't just tell me to look at someone else's
say [pls help me!]
- eucalyptuskoala123
- Scratcher
10 posts
score help
i think you need to use cloud variables like this :
when green flag clicked
forever
if <(score) > (☁ Global Score) then
set [Global Score v] to (score)
end
end
Last edited by eucalyptuskoala123 (March 31, 2024 23:40:58)
- MrKingofScratch
- Scratcher
100+ posts
score help
(basically same as above but with better scratchblocks)
Run this code when the game ends:
Run this code when the game ends:
if <(individual score) > (☁ global score)> then //make sure that the global score variable is a cloud variable
set [(☁ score) v] to (individual score)
end
- Foxy_Fan64
- Scratcher
13 posts
score help
thanks! (basically same as above but with better scratchblocks)
Run this code when the game ends:if <(individual score) > (☁ global score)> then //make sure that the global score variable is a cloud variable
set [(☁ score) v] to (individual score)
end
- Discussion Forums
- » Help with Scripts
- » score help