Discuss Scratch

Shajiui_Da_Black_Fox
Scratcher
500+ posts

Hide all variables in editor

bump

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

mmm
BanMeOS
Scratcher
500+ posts

Hide all variables in editor

So here:
[ v] [ v] lists ::list
parameter 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!
jackson49
Scratcher
1000+ posts

Hide all variables in editor

Bump
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

GameKlikk_Studios wrote:

cookieclickerer33 wrote:

hide variable [All v]
Instead of it’s own block

I support
Good idea. I support this idea as well.
this would also not work for “this sprite only” if they are outside of the sprite

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]
change [All v] by (1)
Too
Knightbot63
Scratcher
1000+ posts

Hide all variables in editor

cookieclickerer33 wrote:

(#29)
set [All v] to [0]
change [All v] by (1)
Too
But what if theres a variable named all in use?
cookieclickerer33
Scratcher
1000+ posts

Hide all variables in editor

Knightbot63 wrote:

cookieclickerer33 wrote:

(#29)
set [All v] to [0]
change [All v] by (1)
Too
But what if theres a variable named all in use?

cookieclickerer33 wrote:

GameKlikk_Studios wrote:

cookieclickerer33 wrote:

hide variable [All v]
Instead of it’s own block

I support
Good idea. I support this idea as well.
this would also not work for “this sprite only” if they are outside of the sprite

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]
change [All v] by (1)
Too
It could also just be called
“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:
hide variable [ v]
medians
Scratcher
1000+ posts

Hide all variables in editor

Knightbot63 wrote:

cookieclickerer33 wrote:

(#29)
set [All v] to [0]
change [All v] by (1)
Too
But what if theres a variable named all in use?
Who would want to name a variable that
Anyways there is a suggestion for a block:
https://scratch.mit.edu/discuss/post/881652/

Powered by DjangoBB