Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Local variables of sprite is appearing at wrong sprite
- ggenije
-
Scratcher
500+ posts
Local variables of sprite is appearing at wrong sprite
I have a lot of blocks in one sprite (about 4000) and also a lot of blocks in another sprite.
There is bug that local variables of one sprite is appearing at the second one.
That happens only when there a lot of blocks.
My browser / operating system: Windows NT 10.0, Chrome 81.0.4044.138, No Flash version detected
There is bug that local variables of one sprite is appearing at the second one.
That happens only when there a lot of blocks.
My browser / operating system: Windows NT 10.0, Chrome 81.0.4044.138, No Flash version detected
- apple502j
-
Scratcher
1000+ posts
Local variables of sprite is appearing at wrong sprite
Can you share the project and link it here?
- ggenije
-
Scratcher
500+ posts
Local variables of sprite is appearing at wrong sprite
https://scratch.mit.edu/projects/392996206
First look at sprite “Draw3D” - local variables in that sprite is indicated with ~ (example ~xyC) you can see that variable(and like 50 another variables) are appearing in “Update” sprite
Also you can test it by going to “Draw3D” then showing some local variable then going back to “Update” you can see that variable becomes from “Draw3D”
First look at sprite “Draw3D” - local variables in that sprite is indicated with ~ (example ~xyC) you can see that variable(and like 50 another variables) are appearing in “Update” sprite
Also you can test it by going to “Draw3D” then showing some local variable then going back to “Update” you can see that variable becomes from “Draw3D”
- apple502j
-
Scratcher
1000+ posts
Local variables of sprite is appearing at wrong sprite
Thanks for providing me the strangest mystery!
- apple502j
-
Scratcher
1000+ posts
Local variables of sprite is appearing at wrong sprite
Also question: did you import a sprite file to the project, or used code from backpack?
- ggenije
-
Scratcher
500+ posts
Local variables of sprite is appearing at wrong sprite
None of above.
And I I haven't figured out when it's happening yet, but I know it's related to lagging between going between sprites(selecting) because there are a lot of blocks.
And I I haven't figured out when it's happening yet, but I know it's related to lagging between going between sprites(selecting) because there are a lot of blocks.
- ggenije
-
Scratcher
500+ posts
Local variables of sprite is appearing at wrong sprite
Here is minimized project that only thing in this project is the bug.
Scratch bug - Local variable in wrong sprite
Scratch bug - Local variable in wrong sprite
- ggenije
-
Scratcher
500+ posts
Local variables of sprite is appearing at wrong sprite
Bug report:
:
What are prerequisites
When there are a lot of blocks in one(or in both , not sure) have a lot of blocks (4000+ in this case).
When bug happens:
By spamming clicks on green flag stop sign, sprite A, sprite B alternately.
How to fix it
Only way is to manually delete the variables in the wrong sprite. But it takes a lot of time if there a lot of local variables (all of them appears in wrong sprite).
:
What are prerequisites
When there are a lot of blocks in one(or in both , not sure) have a lot of blocks (4000+ in this case).
When bug happens:
By spamming clicks on green flag stop sign, sprite A, sprite B alternately.
How to fix it
Only way is to manually delete the variables in the wrong sprite. But it takes a lot of time if there a lot of local variables (all of them appears in wrong sprite).
- apple502j
-
Scratcher
1000+ posts
Local variables of sprite is appearing at wrong sprite
Thanks, that's interesting! I'll investigate later and see if I can repro.
- CodingBio
-
Scratcher
37 posts
Local variables of sprite is appearing at wrong sprite
This happened to me a lot, but only when I made project copies. Odd.
- Discussion Forums
- » Bugs and Glitches
-
» Local variables of sprite is appearing at wrong sprite



