Discuss Scratch

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:
if <(individual score) > (☁ global score)> then //make sure that the global score variable is a cloud variable
set [(☁ score) v] to (individual score)
end

Last edited by kaj (Tomorrow 00:00:00)
100th post!
Foxy_Fan64
Scratcher
13 posts

score help

MrKingofScratch wrote:

(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
thanks!

Powered by DjangoBB