Discuss Scratch

Robrent
Scratcher
15 posts

Help Voting.

I need help using the cloud data is this right?

when this sprite clicked
change [Yes v] by (1)

but what i want to happen is, when you click it again the vote will not add.

Robrent :3

Why not visit and follow my account here.
OrcaCat
Scratcher
1000+ posts

Help Voting.

Double click the following script when you share the project:
set [votable v] to [true]
Now add this script:
when this sprite clicked
if <(votable) = [true]> then
change [Yes v] by (1)
set [votable v] to [false]
end
Yes must be a cloud variable, but votable cannot be a cloud variable.

People can still vote twice if they refresh the page, however.

Last edited by OrcaCat (Jan. 4, 2014 07:01:09)



Robrent
Scratcher
15 posts

Help Voting.

OrcaCat wrote:

Double click the following script when you share the project:
set [votable v] to [true]
Now add this script:
when this sprite clicked
if <(votable) = [true]> then
change [Yes v] by (1)
set [votable v] to [false]
end
Yes must be a cloud variable, but votable cannot be a cloud variable.

People can still vote twice if they refresh the page, however.
Thanks!

Robrent :3

Why not visit and follow my account here.
OrcaCat
Scratcher
1000+ posts

Help Voting.

No problem!


Powered by DjangoBB