Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Cloud Variables Random Decimal Outputs
- LMartin75
-
40 posts
Cloud Variables Random Decimal Outputs
Hey guys,
I was playing around with cloud variables on my new game, Multiplayer Gaming, and I realized that the cloud variable, when forever setting it to the player's X and Y coordinates (no negative sign), would randomly spit out a small decimal at the end of the number. I you could check it out and get back to me, that would be great.
Thanks,
LMartin75
I was playing around with cloud variables on my new game, Multiplayer Gaming, and I realized that the cloud variable, when forever setting it to the player's X and Y coordinates (no negative sign), would randomly spit out a small decimal at the end of the number. I you could check it out and get back to me, that would be great.
Thanks,
LMartin75
- deck26
-
1000+ posts
Cloud Variables Random Decimal Outputs
Might be better creating a stripped down copy to demonstrate the problem or give more details of where/how to see it happening.
Have you checked the cloud data log for the project?
Have you checked the cloud data log for the project?
- LMartin75
-
40 posts
Cloud Variables Random Decimal Outputs
Might be better creating a stripped down copy to demonstrate the problem or give more details of where/how to see it happening.
Have you checked the cloud data log for the project?
The only thing that triggers it is when the data in the cloud variable is rapidly being changes. For example, if you go into my game scripts and move your mouse around quickly, you will see the number flicker from (example) 102 to 102.05 back to 102 in a split second, but happens frequently. I am not sure if this will affect gameplay or cloud variable reading.
- deck26
-
1000+ posts
Cloud Variables Random Decimal Outputs
OK, I see what you mean. It doesn't look like the fractional part is being written to the cloud variable according to the log. It would presumably have to part of Mod Pen Color but doesn't seem to be so it looks at the moment like a glitch.
I'll try stripping things down to see if I can isolate this in any way. Might be worth reporting in Bugs and Glitches in the meantime - someone may be able to explain it there.
I'll try stripping things down to see if I can isolate this in any way. Might be worth reporting in Bugs and Glitches in the meantime - someone may be able to explain it there.
- deck26
-
1000+ posts
Cloud Variables Random Decimal Outputs
Not sure why both Send and Receive are both changing cloud variable P1 when I'm player 1 though.
- deck26
-
1000+ posts
Cloud Variables Random Decimal Outputs
and there's your problem. You have three different sprites all trying to set cloud variable P1 at the same time. You should only need one sprite to change cloud variables P1 or P2 as appropriate.
- LMartin75
-
40 posts
Cloud Variables Random Decimal Outputs
and there's your problem. You have three different sprites all trying to set cloud variable P1 at the same time. You should only need one sprite to change cloud variables P1 or P2 as appropriate.
Okay thanks! I will fix.
- iTweak0r
-
100+ posts
Cloud Variables Random Decimal Outputs
I just noticed that this is the 123456th post!
- planet604
-
83 posts
Cloud Variables Random Decimal Outputs
yeah I just noticed that this is the 123456th post!

- deck26
-
1000+ posts
Cloud Variables Random Decimal Outputs
Please don't necropost.yeah I just noticed that this is the 123456th post!
- Discussion Forums
- » Help with Scripts
-
» Cloud Variables Random Decimal Outputs