Discuss Scratch
- Discussion Forums
- » Suggestions
- » "All" addition to varible dropdown menu
- rev_dude
- Scratcher
20 posts
"All" addition to varible dropdown menu
I am sure many of us have hade a project with what seems to be a million variables, and as we are placing down tons to variable blocks in a big line are thinking "Wouldn't it be nice if I could do this in one block“ This is why I am suggesting the ”All" option to the dropdown menu in the variable block. If selected All would simply run that block to all of the variables in your project, rather than just 1. This would make using variables, something which I struggled a little with when I first started Scratch, more user friendly and streamlined.
For example:
Instead of
For example:
set [All ] to [0]
Instead of
set [Random Variable] to [0]
set [Play] to [0]
set [Score] to [0]
set [Random Variable 2] to [0]
set [Clock] to [0]
set [Timer] to [0]
set [Random Variable 3] to [0]
set [etc..] to [0]
Last edited by rev_dude (Sept. 11, 2016 13:36:53)
- bigpuppy
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
I can't see people using it much, so semi-support.
“Change happens by listening and then starting a dialogue with the people who are doing something you don't believe is right.” -Jane Goodall
- JavierR100
- Scratcher
500+ posts
"All" addition to varible dropdown menu
when green flag clickedNo support, it would mess everything
set [Number of players v] to (. . .)
wait until <<(Alive players) = [1]> or <(Timer :: variables) < [1]>>
set [All the variables v] to [0]
if <Any of the players has high score than others :: grey>
say (join (Winner) [ won!])
end
Stop [All the scripts v]
My customs Blocks on “Snap!” || search in google HN54FyF4KW27o*YWAD94qjEMLV62+]59 to find all my posts. || “Fantasy Tank Builder” Topic || Diep.io | Official Thread || Geometry Dash name account: "JavierR100". || Geometry Dash Official Topic
Actually, [B]en is my legal name!- Pen, BFB 5
Sorry, I'm gone to roblox now, so Im not able to reply anymore!
Sorry, I'm gone to roblox now, so Im not able to reply anymore!
- powercon5
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
This would be a help but I don't know if it is needed so semi-support
How would it mess things up?
when green flag clickedNo support, it would mess everything
set [Number of players v] to (. . .)
wait until <<(Alive players) = [1]> or <(Timer :: variables) < [1]>>
set [All the variables v] to [0]
if <Any of the players has high score than others :: grey>
say (join (Winner) [ won!])
end
Stop [All the scripts v]
How would it mess things up?
Witty signature.
- Scratcher1002
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
Support, it gets tedious having to make every single variable hidden.
Also, if it'd mess everything up, don't use it, it's as simple as that.
It would be annoying to use one block instead of 50? Tell me more.when green flag clickedNo support, it would mess everything
set [Number of players v] to (. . .)
wait until <<(Alive players) = [1]> or <(Timer :: variables) < [1]>>
set [All the variables v] to [0]
if <Any of the players has high score than others :: grey>
say (join (Winner) [ won!])
end
Stop [All the scripts v]
[Also, it will be so annoying]
Also, if it'd mess everything up, don't use it, it's as simple as that.
Last edited by Scratcher1002 (June 11, 2016 03:27:07)
・Scratcher1002は「ここにランダムな日本語の言葉はたくさんですか?はい」と言いました・
||||Search:
Topics | Users
||Studios | Projects
||
||||Search:
Topics | Users
||Studios | Projects
||
- Sheep_maker
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
Support for “all” and “all of this sprite” for the dropdowns in the data blocks.
Optionally the show/hide blocks could also be combined into one single block:
Optionally the show/hide blocks could also be combined into one single block:
[show v] variable [var v]::variables // show, show large, show slider, hide
- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
- rev_dude
- Scratcher
20 posts
"All" addition to varible dropdown menu
Thanks of the support, also great idea for combining the show and hide into 1 block. Support for “all” and “all of this sprite” for the dropdowns in the data blocks.
Optionally the show/hide blocks could also be combined into one single block:[show v] variable [var v]::variables // show, show large, show slider, hide
Last edited by rev_dude (June 12, 2016 13:06:54)
- T_om
- Scratcher
19 posts
"All" addition to varible dropdown menu
Basically, just allow people to set every variable to a value.
(Also, I won't be surprised if this was already suggested, so don't bother telling me.)
set [all v] to []Maybe a
set [all locals v] to []and
set [all globals v] to []N O M O R E C O N T E N T
(Also, I won't be surprised if this was already suggested, so don't bother telling me.)
Last edited by T_om (Sept. 18, 2018 18:00:57)
(Some slightly useful information: Athlon X4 880k @ 4 GHz, GTX 1050 EVGA SC, Win 8.1 64x (Pro), Some FM2+ MSI Mobo)
(username)
- powercon5
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
What would this be needed for? What are some example of it's use?
Witty signature.
- FutureBlack16
- Scratcher
76 posts
"All" addition to varible dropdown menu
What would this be needed for? What are some example of it's use?
If we have like 100 or so variables. Maybe we can use this block to reset all variables in one block, so we don't have to individually place every set variables to () blocks just to reset all variables to 0. I want to say that sometime, individually placing every variables block to reset all variables to 0 can be exhausting and tiring.
This might be a good idea because it save workspace, but i have mixed opinions on this.
took me more time to post than i should.
Last edited by FutureBlack16 (Sept. 18, 2018 18:33:43)
ᖴᑌ丅ᑌᖇᗴᗷᒪᗩᑕᛕ
I try to be as respectful & helpful in Scratch forum as possible, i avoid using “Support” or “No Support” when i'm posting on suggestion forum, and i'm trying to make my posts as new scratcher friendly as possible by linking to an ITopic. I take care of necroposting, thread hijacks, etc. If you have any suggestions how to improve my posts and make my posts more helpful, be sure to click “Criticize my post” and leave a comment suggestion down below. Your feedbacks will help me to be more helpful in Scratch forum.
Community Guidelines - New scratcher? Tips here. - What is Scratch? - Criticize my posts
Community Guidelines - New scratcher? Tips here. - What is Scratch? - Criticize my posts
- TheAdriCoolManDude
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
Why would anyone want to set all the 100 variables to the same thing?
- powercon5
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
It would probably be better to use a list.What would this be needed for? What are some example of it's use?
If we have like 100 or so variables. Maybe we can use this block to reset all variables in one block, so we don't have to individually place every set variables to () blocks just to reset all variables to 0. I want to say that sometime, individually placing every variables block to reset all variables to 0 can be exhausting and tiring.
This might be a good idea because it save workspace, but i have mixed opinions on this.
took me more time to post than i should.
Witty signature.
- TheAdriCoolManDude
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
You give a good argument.It would probably be better to use a list.What would this be needed for? What are some example of it's use?
If we have like 100 or so variables. Maybe we can use this block to reset all variables in one block, so we don't have to individually place every set variables to () blocks just to reset all variables to 0. I want to say that sometime, individually placing every variables block to reset all variables to 0 can be exhausting and tiring.
This might be a good idea because it save workspace, but i have mixed opinions on this.
took me more time to post than i should.
- --_Nova_--
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
Yeah, if I make a large project I usually just throw variables out the window and use two lists instead of a hundred of themIt would probably be better to use a list.What would this be needed for? What are some example of it's use?
If we have like 100 or so variables. Maybe we can use this block to reset all variables in one block, so we don't have to individually place every set variables to () blocks just to reset all variables to 0. I want to say that sometime, individually placing every variables block to reset all variables to 0 can be exhausting and tiring.
This might be a good idea because it save workspace, but i have mixed opinions on this.
took me more time to post than i should.
You should probably do that if you'll have to be constantly resetting a large number of variables
But still support as it'd be pretty nice, maybe under something like that little line dividing global/local variables
- Hahgoot
- Scratcher
100+ posts
"All" addition to varible dropdown menu
There is a workaround, but support since it would be easier.
Hi there, I'm Hahgoot, but you can call me Goots if you like. I like animals, books, poetry, Owl City, raspberries and drawing. My little sister is PrincessFuzzyCat and my other account is RaspberryyTest.
- KingSkrizzle
- New to Scratch
11 posts
"All" addition to varible dropdown menu
It would probably be better to use a list.What would this be needed for? What are some example of it's use?
If we have like 100 or so variables. Maybe we can use this block to reset all variables in one block, so we don't have to individually place every set variables to () blocks just to reset all variables to 0. I want to say that sometime, individually placing every variables block to reset all variables to 0 can be exhausting and tiring.
This might be a good idea because it save workspace, but i have mixed opinions on this.
took me more time to post than i should.
No, it wouldn't. The wiki gives no guidance on how set all the variables in a list to whatever initial value each needs to have. And the effort to build the list in the first place is more work than implementing a set all option in the block.
Support.
Skrizzle out.
- Sheep_maker
- Scratcher
1000+ posts
"All" addition to varible dropdown menu
To set all items in a list to a value:
set [i v] to [0]
repeat (length of [list v])
change [i v] by (1)
replace item (i) of [list v] with (value::grey)
end
- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
- Discussion Forums
- » Suggestions
- » "All" addition to varible dropdown menu