Discuss Scratch
- Shajiui_Da_Black_Fox
-
Scratcher
500+ posts
Hide all variables in editor
bump
oh look second page
oh look second page
Last edited by Shajiui_Da_Black_Fox (Dec. 18, 2020 19:10:13)
- BanMeOS
-
Scratcher
500+ posts
Hide all variables in editor
So here:
parameter 2: what lists
then same for variables
[ v] [ v] lists ::listparameter 1: show or hide
parameter 2: what lists
then same for variables
Last edited by BanMeOS (Aug. 17, 2021 01:27:07)
- jiiing_jing_rice
-
Scratcher
2 posts
Hide all variables in editor
This would be very useful to have in my game. 

- VeryFamus
-
Scratcher
1000+ posts
Hide all variables in editor
This can be very useful for projects with a lot of variables, as pretty much none of them will be shown. I don’t really like the idea of a tick box, but a block sounds nice. Good idea!
- cookieclickerer33
-
Scratcher
1000+ posts
Hide all variables in editor
hide variable [All v]Instead of it’s own block
I support
- cookieclickerer33
-
Scratcher
1000+ posts
Hide all variables in editor
this would also not work for “this sprite only” if they are outside of the spriteGood idea. I support this idea as well.hide variable [All v]Instead of it’s own block
I support
But what if you have a variable named all? Well this could be listed above all the other variables like the “rename” and “delete” options
Yea know
Why not
set [All v] to [0]Too
change [All v] by (1)
- Knightbot63
-
Scratcher
1000+ posts
Hide all variables in editor
(#29)But what if theres a variable named all in use?set [All v] to [0]Too
change [All v] by (1)
- cookieclickerer33
-
Scratcher
1000+ posts
Hide all variables in editor
(#29)But what if theres a variable named all in use?set [All v] to [0]Too
change [All v] by (1)
It could also just be calledthis would also not work for “this sprite only” if they are outside of the spriteGood idea. I support this idea as well.hide variable [All v]Instead of it’s own block
I support
But what if you have a variable named all? Well this could be listed above all the other variables like the “rename” and “delete” options
Yea know
Why notset [All v] to [0]Too
change [All v] by (1)
“All variables”
- Pillagerplayz
-
Scratcher
69 posts
Hide all variables in editor
You can edit the JSON!
1. Drag a hide variable block into the code
2. Save the project to your computer.
3. Find the downloaded file and change the file extension to “.zip”.
4. Extract all (If needed)
5. Find the “project.json” file in the compressed folder
6. Right click and click on “Open with…” and select “Notepad”
7. Find the block opcode (data_hidevariable) in the json and change the dropdown text to “”.
8. Save it and change the folder back to “.sb3” file extension.
9. Load the .sb3 file.
10. You're done!
Hope this helped!
It'll look like this:
1. Drag a hide variable block into the code
2. Save the project to your computer.
3. Find the downloaded file and change the file extension to “.zip”.
4. Extract all (If needed)
5. Find the “project.json” file in the compressed folder
6. Right click and click on “Open with…” and select “Notepad”
7. Find the block opcode (data_hidevariable) in the json and change the dropdown text to “”.
8. Save it and change the folder back to “.sb3” file extension.
9. Load the .sb3 file.
10. You're done!
Hope this helped!

It'll look like this:
hide variable [ v]
- medians
-
Scratcher
1000+ posts
Hide all variables in editor
Who would want to name a variable that(#29)But what if theres a variable named all in use?set [All v] to [0]Too
change [All v] by (1)
Anyways there is a suggestion for a block:
https://scratch.mit.edu/discuss/post/881652/