Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » "my variable" bug
- d3t3ct1v3p1kachu
-
Scratcher
35 posts
"my variable" bug
THE VARRIABLE I NAMED “Clicked?” IS TURNING INTO “my variable”
Okay so basically I had a variable named “Clicked?” and I had it in my “Check Click” custom block for my example of checking a click using a custom block. When I took the sprite out of my backpack, it got renamed in the new project to “my variable” for absolutely no reason. It doesn't do any harm, but just makes it really confusing and annoying. I believe that it replaces the bottommost variable with what was the bottommost variable, which normally isn't bad unless you already use the bottommost variable for something, so you need to remake the one that got replaced. This would obviously be really annoying, as it can break your project, and possibly even crash Scratch if it ends up creating a loop that creates a bunch of clones, example your bottommost block gets replaced with the one that will make it activate the bottommost one, creating a loop if it is where the variable that activates the bottommost one is set to 1 and the bottommost one sets it to 1 (example: Var1 doesn't activate Var2 if Var1 isn't set to 1, but Var2 can set Var1 to 1 and activate something, such as setting Var2 to 0 if Var1 and Var2 are both at 1, but if Var1 replaces Var2 then Var2 won't be needed to prevent activating something, and Var1 will instantly activate, but Var3 sets Var2 to 1 and Var1 to 0, however it sets Var1 to 0 first so then it will set Var1 to 1 because Var2 got replaced). I might be overcomplicating things, but it could be tragic.
Okay so basically I had a variable named “Clicked?” and I had it in my “Check Click” custom block for my example of checking a click using a custom block. When I took the sprite out of my backpack, it got renamed in the new project to “my variable” for absolutely no reason. It doesn't do any harm, but just makes it really confusing and annoying. I believe that it replaces the bottommost variable with what was the bottommost variable, which normally isn't bad unless you already use the bottommost variable for something, so you need to remake the one that got replaced. This would obviously be really annoying, as it can break your project, and possibly even crash Scratch if it ends up creating a loop that creates a bunch of clones, example your bottommost block gets replaced with the one that will make it activate the bottommost one, creating a loop if it is where the variable that activates the bottommost one is set to 1 and the bottommost one sets it to 1 (example: Var1 doesn't activate Var2 if Var1 isn't set to 1, but Var2 can set Var1 to 1 and activate something, such as setting Var2 to 0 if Var1 and Var2 are both at 1, but if Var1 replaces Var2 then Var2 won't be needed to prevent activating something, and Var1 will instantly activate, but Var3 sets Var2 to 1 and Var1 to 0, however it sets Var1 to 0 first so then it will set Var1 to 1 because Var2 got replaced). I might be overcomplicating things, but it could be tragic.
- HollyEuca
-
Scratcher
1000+ posts
"my variable" bug
I believe this is a common issue.
There was an update recently to the editor, and with it has come a lot of different bugs and glitches. These glitches are affecting block functions, block appearance, variables, etc. I've had variable issues similar to the ones you're describing. It's really frustrating
We'll just have to wait until the Scratch Team fixes the issue
You can use Turbowarp for coding in the meantime.
There was an update recently to the editor, and with it has come a lot of different bugs and glitches. These glitches are affecting block functions, block appearance, variables, etc. I've had variable issues similar to the ones you're describing. It's really frustrating

We'll just have to wait until the Scratch Team fixes the issue

You can use Turbowarp for coding in the meantime.
Last edited by HollyEuca (April 22, 2026 00:59:01)
- Discussion Forums
- » Bugs and Glitches
-
» "my variable" bug