Discuss Scratch

supernavo
Scratcher
1000+ posts

New invisible code glitch?

My browser / operating system: Android Linux 12, Chrome 107.0.0.0, No Extensions
My browser / operating system: Windows NT 10.0, Chrome 107.0.0.0, Scratch DT (No SA), McAfee

If you make a variable with a control character, Scratch freaks out. I used it here. Expected: show variable or give undefined hat block. Output: either pallete or code blocks disappear depending on if you have reloaded the code yet.

To reproduce: Make a new variable. Make sure its name contains . Once you reload the code, the blocks go invisible. Copy paste this control character: 

Here's a GIF of me recreating this glitch.


Notes: This glitch can also be done with broadcasts, and can be done using local variables. You can also view a newer topic with more control character glitches here.

Last edited by supernavo (Dec. 1, 2022 20:30:30)

gsegfsgfids
New Scratcher
23 posts

New invisible code glitch?

Strange, I can't make the variable, if the name is blank (including spaces being added), then it won't be created. I will be looking into this.
My browser / operating system: ChromeOS 15117.111.0, Chrome 107.0.0.0, No Flash version detected
Please click the globe icon in the post editor to show your browser/OS info.
supernavo
Scratcher
1000+ posts

New invisible code glitch?

gsegfsgfids wrote:

Strange, I can't make the variable, if the name is blank (including spaces being added), then it won't be created. I will be looking into this.
My browser / operating system: ChromeOS 15117.111.0, Chrome 107.0.0.0, No Flash version detected
Please click the globe icon in the post editor to show your browser/OS info.
I didn't notice my post was partially deleted by BBCode. Also I did use the globe, but hid it.

Last edited by supernavo (Nov. 29, 2022 17:27:29)

medians
Scratcher
1000+ posts

New invisible code glitch?

supernavo wrote:

My browser / operating system: Android Linux 12, Chrome 107.0.0.0, No Flash version detected
aifewifewf
New Scratcher
8 posts

New invisible code glitch?

I see now, I can replicate
My browser / operating system: ChromeOS 15117.111.0, Chrome 107.0.0.0, No Flash version detected
When I create the variable with  as it's name, all the variable blocks disappear from the palette, and only the variable reporters remain. When I try to make another variable with  as the name, it says that the variable already exists.

Last edited by aifewifewf (Nov. 30, 2022 17:11:13)

BebaMonica
Scratcher
100+ posts

New invisible code glitch?

I tried to recreate this but it did not work.

My browser / operating system: Windows NT 10.0, Firefox 107.0, No Flash version detected
supernavo
Scratcher
1000+ posts

New invisible code glitch?

Bump?
samuelzito
Scratcher
100+ posts

New invisible code glitch?

BebaMonica wrote:

I tried to recreate this but it did not work.

My browser / operating system: Windows NT 10.0, Firefox 107.0, No Flash version detected
Copy and paste this: ‘’
My browser / operating system: Android Linux 12, Chrome 107.0.0.0, No Flash version detected

Last edited by samuelzito (Dec. 3, 2022 17:22:06)

creepycode101
Scratcher
63 posts

New invisible code glitch?

This is a blessing, now I can stop people from stealing and remixing my games!
supernavo
Scratcher
1000+ posts

New invisible code glitch?

Bbbbb u u mm m m pppppp !!!
B b u u m m m m p p !!!
Bbbbb u u m m m pppppp !
B b u u m m p '
Bbbbbb uuuuuuu m m p !!!
Za-Chary
Scratcher
1000+ posts

New invisible code glitch?

creepycode101 wrote:

This is a blessing, now I can stop people from stealing and remixing my games!
You should not do this. If you do, the Scratch Team may remove your project for trying to discourage remixing. Scratch projects are intended to have all code visible, so when there is code in a project that is not visible, the Scratch Team may remove it.
LORDHEAVEN21
Scratcher
2 posts

New invisible code glitch?

I forgot but, you can’t put spaces in variables.
notion3
Scratcher
0 posts

New invisible code glitch?

Also on mobile it seems that if code is too big it becomes invisible.

Powered by DjangoBB