Discuss Scratch

swagopotamus
Scratcher
100+ posts

Cloud List

I'm working on a game that has an endless mode, where you play against waves of enemies and see how far you can get. I want to have a cloud list of everyone that's played it, and what wave they've reached. I would also like it to be sorted from the highest amount of waves someone has reached to the lowest. Anyone know how to do this?
Cutie_Pooge
Scratcher
500+ posts

Cloud List

Cloud lists are fairly easy but they are limited to only a handful of items per list (as the cloud variable limit is 128), can you tell all the letters the list is supposed to support and I will make it for you.
-PhoenixAnimates-
Scratcher
100+ posts

Cloud List

I would reccomend griffpatch's cloud game tutorial on youtube - it should teach you the basics of cloud games on scratch.

However, I don't know much about this myself to help other than that…
swagopotamus
Scratcher
100+ posts

Cloud List

Cutie_Pooge wrote:

Cloud lists are fairly easy but they are limited to only a handful of items per list (as the cloud variable limit is 128), can you tell all the letters the list is supposed to support and I will make it for you.
Thank you! It's supposed to list someone's username, and their score beside it. Since someone's username can have any letters, it should be able to support literally any letter someone could use in their username. I don't know how long that'll take though, and if you don't want to help me it's completely fine.
Cutie_Pooge
Scratcher
500+ posts

Cloud List

Here I made a simple cloud list. It supports all the letters that username supports, when making the highscore I suggest making two lists, one stores the names of the scratchers and the other stores the scores. Store them on two separate cloud list variables and you can easily make your highscore list. Also I suggest making it only top 5 or something since that simple example requires 92 characters and the limit is 128.

Last edited by Cutie_Pooge (July 9, 2020 05:52:22)

SuperScratcher_1234
Scratcher
100+ posts

Cloud List

Cutie_Pooge wrote:

Cloud lists are fairly easy but they are limited to only a handful of items per list (as the cloud variable limit is 128), can you tell all the letters the list is supposed to support and I will make it for you.

Cutie_Pooge wrote:

Here I made a simple cloud list. It supports all the letters that username supports, when making the highscore I suggest making two lists, one stores the names of the scratchers and the other stores the scores. Store them on two separate cloud list variables and you can easily make your highscore list. Also I suggest making it only top 5 or something since that simple example requires 92 characters and the limit is 128.
Hello! It looks like you are mistaken: the cloud variable limit was recently changed to 256 from 128.
Cutie_Pooge
Scratcher
500+ posts

Cloud List

SuperScratcher_1234 wrote:

Hello! It looks like you are mistaken: the cloud variable limit was recently changed to 256 from 128.
Oh how did I never hear of that, probably because I was inactive for a few months but that's nice.
swagopotamus
Scratcher
100+ posts

Cloud List

Cutie_Pooge wrote:

Here I made a simple cloud list. It supports all the letters that username supports, when making the highscore I suggest making two lists, one stores the names of the scratchers and the other stores the scores. Store them on two separate cloud list variables and you can easily make your highscore list. Also I suggest making it only top 5 or something since that simple example requires 92 characters and the limit is 128.
Thank You So Much! This is incredible. I do have one more question though, if you don't mind. Since it's limited, I want it to always show only the highest scores. So if the list is full and someone beats the lowest score on the list, that person's name will replace the other person's name, if that makes sense. Is there a way to do this?
scratchperson12347
Scratcher
100+ posts

Cloud List

This can support 200k items (max list length) (as long as you check in every 20 or so) https://scratch.mit.edu/projects/403803039/
Cutie_Pooge
Scratcher
500+ posts

Cloud List

You may want to create another topic when asking different question, but yes. You do this:
set [Counter v] to (1)
repeat until <(playerScore) > (item (Counter) of [Scores v] :: list)> //change the > to < if highscores from lowest to highest
change [Counter v] by (1)
end
insert (playerScore) at (1) of [Scores v] :: list
if <(length of [Scores v] :: list) > (15)> then //imagine 15 is the limit of top players
delete (length of [Scores v] :: list) of [Scores v]
end
This has not been tested.

Last edited by Cutie_Pooge (July 10, 2020 01:39:43)

Powered by DjangoBB