Discuss Scratch

zappgame_version3
Scratcher
100+ posts

Polls... How do you make them?

So I want to make a cloud poll to see what people should focus on making.

I have an idea in mind…

when this sprite clicked//this would be the voting script
change [☁️ Option1 v] by (1)
set [voted? v] to [yes]

when green flag clicked//if somebody went inside to show it to vote again, it would count as a change to the project, and it would not save to the actual project's server.
forever
if <(voted?)=[yes]> then
hide
else
show
end
end

But I'm not 100% sure it works.

My badges:

(Badges by Autofirejm)
If you wanna see this thing, look at TKTK1234567's signature, it was too long for scratch.
Select text and shift + down to read


A funny scratchblocks script was supposed to be here but it was too long for scratch


Ads:








SCUFFED SUPERSCHOOL UNRELEASEDT



deck26
Scratcher
1000+ posts

Polls... How do you make them?

The voted variable will just be reset when they reload the project so serves no purpose. The only way to keep track of who has voted is to encode and store their username which is a lot of work for something like this.
zappgame_version3
Scratcher
100+ posts

Polls... How do you make them?

deck26 wrote:

(#2)
The voted variable will just be reset when they reload the project so serves no purpose. The only way to keep track of who has voted is to encode and store their username which is a lot of work for something like this.
In my clicker game, I intentionally made it so the variables don't reset, and when I reloaded it, It saved my progress

My badges:

(Badges by Autofirejm)
If you wanna see this thing, look at TKTK1234567's signature, it was too long for scratch.
Select text and shift + down to read


A funny scratchblocks script was supposed to be here but it was too long for scratch


Ads:








SCUFFED SUPERSCHOOL UNRELEASEDT



MistaLOD
Scratcher
100+ posts

Polls... How do you make them?

If only cloud lists were still a thing…

Sorry, not much you could do unless you asked everyone to remix the project with their answer, or maybe put their answers in the comments.

ask [Did you lose your music file?] and wait
if <(answer) = [yes]> then
say [Visit the link below!]
end
I can be found in seg-leinad's Piano Shop as well as various other shops making music and coding projects!

Music Orders
deck26
Scratcher
1000+ posts

Polls... How do you make them?

zappgame_version3 wrote:

deck26 wrote:

(#2)
The voted variable will just be reset when they reload the project so serves no purpose. The only way to keep track of who has voted is to encode and store their username which is a lot of work for something like this.
In my clicker game, I intentionally made it so the variables don't reset, and when I reloaded it, It saved my progress
If other users run one of your projects no data will survive a reload unless written to the cloud. Were you testing on the project page or in the editor? I suspect in your case you were essentially saving the project without realising or you restarted without reloading but whatever was happening it won't work for other users unless they restart without reloading.
zappgame_version3
Scratcher
100+ posts

Polls... How do you make them?

MistaLOD wrote:

(#4)
If only cloud lists were still a thing…

Sorry, not much you could do unless you asked everyone to remix the project with their answer, or maybe put their answers in the comments.
yeah, But that would be L A M E

My badges:

(Badges by Autofirejm)
If you wanna see this thing, look at TKTK1234567's signature, it was too long for scratch.
Select text and shift + down to read


A funny scratchblocks script was supposed to be here but it was too long for scratch


Ads:








SCUFFED SUPERSCHOOL UNRELEASEDT



TheWeeklyReader
Scratcher
100+ posts

Polls... How do you make them?

The only way too do it would be to encode their usernames as numbers and save them somehow or to just base it off the honor system.

Quote a great man::hat #015c15
begin quote{
what if we are atoms making up other atoms that are making up other atoms that are making up other atoms, and atoms::#000000
in our perspective are other creatures made by other creatures made by other creatures. we will never know because::#000000
there is simply no way to tell if our universe is someone elses atom or if we are someones universe.::#000000
}end quote:: #000278
set -a great man- to TheWeeklyReader::#004547
i am not crazy::#000000
MistaLOD
Scratcher
100+ posts

Polls... How do you make them?

TheWeeklyReader wrote:

The only way too do it would be to encode their usernames as numbers and save them somehow or to just base it off the honor system.
There are three problems with this:
1: cloud variables have a 256 character limit
2: you can only have 10 cloud variables
3: when making a username into numbers, “X” and “x” are the same in scratch's eyes, so usernames would not be case-sensitive.

I've tried doing this, and it is technically possible to store a username into a cloud variable, but it would all be lower-case. It takes up the length of the username x2, so my username (MistaLOD) would take up 16 characters.

In an ideal world, a-z = 01-26, A-Z = 27=52, - = 53, _ = 54, 0-9 = 90-99, and 60 (or another number) would separate the usernames.

ask [Did you lose your music file?] and wait
if <(answer) = [yes]> then
say [Visit the link below!]
end
I can be found in seg-leinad's Piano Shop as well as various other shops making music and coding projects!

Music Orders

Powered by DjangoBB