Discuss Scratch
- Discussion Forums
- » Suggestions
- » "Create own block" dropdown list
- RedReadyOPERA
-
100+ posts
"Create own block" dropdown list
the define block is a hat

define block thingybut why not we make hat, cap, c type, E type blocks instead of the original stack blocks?
block ::custom hatthat will be good
block {
} ::custom
block{
}{
} ::custom
block ::custom cap

- zomboss1_1
-
500+ posts
"Create own block" dropdown list
I support this idea. A way to improve it though: what do you were to list all the drop downs at once, and then have a special block that will add in the code for just once drop down, and you'd do this for every dropdown option, so you don't have a ton of seperate, disorganized blocks for a single dropdown?
- An0therRand0mC0der
-
1000+ posts
"Create own block" dropdown list
info on itThat topic is closed and is a duplicate mine has more
Also it seems extremely similar to this post so it doesn't give much more information
- medians
-
1000+ posts
"Create own block" dropdown list
Yeah this would be nicer than having an input and having to check if it's invalid or not.

when green flag clicked
set [page v] to [1]

- medians
-
1000+ posts
"Create own block" dropdown list
when green flag clicked
set [page v] to [1]
- Crispydogs101
-
1000+ posts
"Create own block" dropdown list
Awesome! Looks good! the define block is a hatdefine block thingybut why not we make hat, cap, c type, E type blocks instead of the original stack blocks?block ::custom hatthat will be good
block {
} ::custom
block{
}{
} ::custom
block ::custom cap
- medians
-
1000+ posts
"Create own block" dropdown list
Yeah it would be nice if there was an option in this, where you can copy over the dropdowns of other blocks.when green flag clicked
set [page v] to [1]
If you don't get what I mean by this:

And the block in the custom block will do the last run dropdown (if there is none it will be blank).
Edit:
Maybe like this?
set (dropdown1 ::custom) to [0] //if dropdown1 is not a real variable, this will do nothing.
Last edited by medians (Jan. 2, 2023 22:31:09)
- PkmnQ
-
1000+ posts
"Create own block" dropdown list
Having the dropdown look the same in the definition and the custom block implies that you can select from the dropdown, which is kind of weird but does nothing.
- medians
-
1000+ posts
"Create own block" dropdown list
Yea I realized that after. I think it should be only in the definition now. Though I think there should be an option to add dropdown options from other blocks and making your own too.Having the dropdown look the same in the definition and the custom block implies that you can select from the dropdown, which is kind of weird but does nothing.
Last edited by medians (Jan. 13, 2023 01:16:22)
- MyScratchedAccount
-
1000+ posts
"Create own block" dropdown list
Look:
Dropdown [hi v]
Use v to use dropdown in BBcode and the blocks
- Frenzyboyz33
-
100+ posts
"Create own block" dropdown list
made an image for any-input, text, numeric, label text, boolean, dropdown/list, branch, and color input. 

- Frenzyboyz33
-
100+ posts
"Create own block" dropdown list
for hat and cap, there would have to be a toggle, but they would conflict with eachother, as capped hat is useless. but branches would be an input that simply is a bit complex, requiring a new system in the define blockAwesome! Looks good! the define block is a hatdefine block thingybut why not we make hat, cap, c type, E type blocks instead of the original stack blocks?block ::custom hatthat will be good
block {
} ::custom
block{
}{
} ::custom
block ::custom cap
- Frenzyboyz33
-
100+ posts
"Create own block" dropdown list
heres that
branched input can be moved, so for example, the goto random position block could be first!
multiple branches can be inserted, too.

branched input can be moved, so for example, the goto random position block could be first!
multiple branches can be inserted, too.
Last edited by Frenzyboyz33 (Feb. 1, 2023 13:05:41)
- Craftgenix1
-
12 posts
"Create own block" dropdown list
I think this is an amazing idea, and this can have a: if is (dropdown option) run: (code), and when you put a dropdown option on a custom block, the dropdown will display the dropdowns that it is hooked up to, such as variable dropdowns, lists, the if is, and more!%d They will be added in future! My suggestion is simple: that when you create your own block, along with boolean, string and number input, you were allowed to do a dropdown list like this:define move [direcion]I would find this very useful (though admittedly my example wasn't very useful)
if <(direction)=[up]>
point in direction (0 v)
move (10) steps
end
if <(direction)=[down]>
point in direction (180 v)
move (10) steps
end
when green flag clicked
move [down v]
Any suggestions, improvements or just support?
- medians
-
1000+ posts
"Create own block" dropdown list
Yeah it should definitely be like this:


And you'll be able to get dropdowns from other blocks as well.


And you'll be able to get dropdowns from other blocks as well.
- qwerty_wasd_gone
-
1000+ posts
"Create own block" dropdown list
fix -cut-define move [direcion]▾-cut-
if <(direction)=[up]> then
point in direction (0 v)
move (10) steps
end
if <(direction)=[down]> then
point in direction (180 v)
move (10) steps
end
when green flag clicked
move [down v]::custom
- medians
-
1000+ posts
"Create own block" dropdown list
extra fixfix -cut-define move [direction::#5846b0]▾-cut-
if <(direction::#5846b0)=[up]> then
point in direction (0 v)
move (10) steps
end
if <(direction::#5846b0)=[down]> then
point in direction (180 v)
move (10) steps
end
when green flag clicked
move [down v]::custom
- Discussion Forums
- » Suggestions
-
» "Create own block" dropdown list