Discuss Scratch

mchen2010
Scratcher
40 posts

Cloud Variables Not Updating.

I have a recent test project:
https://scratch.mit.edu/projects/780869601/editor/

Which has a updating cloud variable. The cloud variable should not be updating faster than 0.1 seconds, so it should not be blocked. The spcefific variable that is not working is the
(☁ Transfer Velocity Y)
variable. Any help is apreciated. If my problem is browser or this-case-only based, tell me. Thank you for your support on scratch.

Last edited by mchen2010 (Dec. 24, 2022 02:12:23)

OrangeOS-
Scratcher
100+ posts

Cloud Variables Not Updating.

So, it's probably a problem with your browser, but I see why it might not be.

A couple of months ago, this problem happened with almost every cloud variable. They would just stay at their last number. Luckily, this bug has been fixed. But, it might be fixed, but not patched.

Tell me if this is wrong because I'm no Scratch genius.
Best-Codex
Scratcher
100+ posts

Cloud Variables Not Updating.

Scratch cloud variables can be updated only 10 frames per second, so it will ignore 2 update requests on 3. You can fix it by recording that 2 missing frames' informations into a list and set the cloud variable to the 3rd frame infos+the infos you put in the list.
mchen2010
Scratcher
40 posts

Cloud Variables Not Updating.

I might have forgot to add, but my cloud vars do not update faster than 10 frames, so that should not be the problem. Thanks for the help, though!
Best-Codex
Scratcher
100+ posts

Cloud Variables Not Updating.

mchen2010 wrote:

I might have forgot to add, but my cloud vars do not update faster than 10 frames, so that should not be the problem. Thanks for the help, though!
Ah, cloud variables don't update at all, I didn't understand.
AHypnoman
Scratcher
1000+ posts

Cloud Variables Not Updating.

There has to be a delay of one second between every time you set any given cloud variable. You can fix this by only sending the new value once velocity changes.


Best-Codex wrote:

Scratch cloud variables can be updated only 10 frames per second, so it will ignore 2 update requests on 3. You can fix it by recording that 2 missing frames' informations into a list and set the cloud variable to the 3rd frame infos+the infos you put in the list.
This is incorrect - it is once every second.
mchen2010
Scratcher
40 posts

Cloud Variables Not Updating.

Yes, check my code, my cloud variables are updating with a delay of more than 2 seconds, and are updating in parallel with 3 other cloud variables that are perfectly updating. This is the problem I have, sorry if I did some XYZ trouble. Thank you very much.
teddyhedgehog
Scratcher
11 posts

Cloud Variables Not Updating.

My cloud variables won't update at all. Any tips on how to change it?
add [I] to [list v]
show list [ v]
add [does] to [list v]
add [it] to [list v]
add [not] to [list v]
add [work?] to [list v]
medians
Scratcher
1000+ posts

Cloud Variables Not Updating.

teddyhedgehog wrote:

My cloud variables won't update at all. Any tips on how to change it?

Make a new topic for this and send the link to the project so we know how your code works.

Powered by DjangoBB