Discuss Scratch

qwerty116
Scratcher
100+ posts

"Create own block" dropdown list

SUPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOORRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRTTTTTTTTTTTTTTTTTTTTT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Example:

when green flag clicked
skill issue [1 of 4 v]

define skill issue (text from dropdown)
if <(skill issue) = 1>
repeat (2000)
turn cw (1) degrees
end
end

Last edited by qwerty116 (April 27, 2022 17:46:05)

Nambaseking01
Scratcher
1000+ posts

"Create own block" dropdown list

qwerty116 wrote:

SUPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOORRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRTTTTTTTTTTTTTTTTTTTTT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Example:

when green flag clicked
skill issue [1 of 4 v]

define skill issue (text from dropdown)
if <(skill issue) = 1>
repeat (2000)
turn cw (1) degrees
end
end

Please be constructive when you share your feedback about a suggestion instead of just sending “support” or “no support”. The reason this is a discussion topic and not a poll is because the Scratch Team wants to see what the community thinks about suggestions and add them to the platform if they see valid and constructive reasons from the community.

But don’t worry, everybody makes mistakes every once in a while - feel free to share your thoughts about this suggestion in a new post.



Support. I definitely believe that this will be useful, as you can already add numbers, text, and boolean values into custom blocks, which are all things you can enter in other Scratch blocks as well. The only other thing apart from those three with you can “customize” in a block is the dropdown feature, and that is also, ironically, the only one missing from custom blocks. Since the whole purpose of custom blocks are so you can invent your own block taking inspiration from the others and to shorten code, I think this would be a really useful feature.

I feel like the example that was given in the OP is already wonderful, as it perfectly shows for which purpose this can be used, which is mainly for platformers or other games involving movement (I don't see a lot of ways this feature could be used in animations and other game types, such as simulators, but anything is possible, I suppose).
erencemaltay
Scratcher
87 posts

"Create own block" dropdown list

Me_Tis wrote:

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]▾
if <(direction)=[up]>
point in direction (0 v)
move (10) steps
end
if <(direction)=[right]>
point in direction (180 v)
move (10) steps
end
if <(direction)=[up]>
point in direction (90 v)
move (10) steps
end
if <(direction)=[left]>
point in direction (-90 v)
move (10) steps
end

end
when green flag clicked
move [down v]

You would create it like this:
https://www.dropbox.com/s/4t3sqpemud3e0y1/Dropdown%20list.png?dl=0

I would find this very useful (though admittedly my example wasn't very useful)
Any suggestions, improvements or just support?

PS this can be likened to enums in other programming languages.

UPDATE:
I know that this is possible through workarounds, but the entire premise behind scratch is to make programming easy, so a workaround isn't really a solution.
I am suggesting this because I think it will make some things easier, whereas using the workaround makes things harder, and may be intimidating to new programmers.
Yeah. I added new options in quote.

Last edited by erencemaltay (April 27, 2022 18:01:31)

Conduit7
Scratcher
100+ posts

"Create own block" dropdown list

support, this would be a super helpful optimization for custom blocks
Oofahman
Scratcher
9 posts

"Create own block" dropdown list

Lot's of support! But what if we could add dropdowns to dropdowns? Kinda similar to the elif block
[stuff v] [Option1 v]

Last edited by Oofahman (May 14, 2022 14:59:34)

Endless-Ocean
Scratcher
100+ posts

"Create own block" dropdown list

Support/bump! This would be a very useful feature because then you wouldn't have to use inputs for dropdowns. If you use inputs, you might type it in wrong and mess up your code. Using dropdowns, custom blocks would become even more useful! One thing I am wondering about though is if there will be two dropdown features added for custom blocks, as there are two types of dropdowns, one where you can put in an input alternatively, and one that is only a dropdown:

([stuff v]) // Dropdown only

((stuff v)) // Input or Dropdown

I'm also kind of wondering how you would enter the dropdown inputs. I guess the ST would have to create some sort of dropdown editor. I saw on the main post a link to an image of how you would add it, but the image is unavailable for me so I have no idea.

It would also be interesting if we could have special dropdowns for things like costumes or variables, but we'll see what happens.

Overall I think this would be a great feature to add to Scratch.

Last edited by Endless-Ocean (June 4, 2022 13:14:15)

Pikachuf1
Scratcher
77 posts

"Create own block" dropdown list

support, I can see how this could be very useful
keifisthebest
Scratcher
22 posts

"Create own block" dropdown list

ha %c
Seon8
Scratcher
33 posts

"Create own block" dropdown list

I like it! It’s not totally necessary and there are definitely workarounds but I think it’s worth it to change anyway. It would help when sharing custom blocks for others to use so they know the right inputs.
Marc92020
Scratcher
1000+ posts

"Create own block" dropdown list

bump
Cordongreen
Scratcher
1000+ posts

"Create own block" dropdown list

say [Wow, this topic was alive since the year I was born]
disnottaken_alt
Scratcher
100+ posts

"Create own block" dropdown list

qwerty116Open in Ocular wrote:

SUPORT!
Example:

when green flag clicked
skill issue [1 of 4 v]

define skill issue (text from dropdown)
if <(skill issue) = 1>
repeat (2000)
turn cw (1) degrees
end
end
when [key v] pressed on gamepad ::extension hat
say (button pressed on keypad ::extension)
bsteichman
Scratcher
500+ posts

"Create own block" dropdown list

Support! I’ve wanted this to be here so many times
super_Calvin
Scratcher
27 posts

"Create own block" dropdown list

yes i am sure this would be useful cause it works better then having to make
a variable and all that. so yeah! support.
define confirm
if <cool> then
say [support]
end

Last edited by super_Calvin (Oct. 10, 2022 20:06:26)

InfinityLoopGaming
Scratcher
100+ posts

"Create own block" dropdown list

This needs to be bumped.
BUMP
super_Calvin
Scratcher
27 posts

"Create own block" dropdown list

InfinityLoopGaming wrote:

This needs to be bumped.
BUMP
whoah stop with the trash talk will you?
when trash talk starts
stop [voice (trash talk) v]
randomguy3513
Scratcher
1000+ posts

"Create own block" dropdown list

super_Calvin wrote:

InfinityLoopGaming wrote:

This needs to be bumped.
BUMP
whoah stop with the trash talk will you?
when trash talk starts
stop [voice (trash talk) v]
He isn't trash-talking is he simply just bumping the post and bringing it up to the front page
InfinityLoopGaming
Scratcher
100+ posts

"Create own block" dropdown list

super_Calvin wrote:

InfinityLoopGaming wrote:

This needs to be bumped.
BUMP
whoah stop with the trash talk will you?
when trash talk starts
stop [voice (trash talk) v]
how am i trash talking
super_Calvin
Scratcher
27 posts

"Create own block" dropdown list

randomguy3513 wrote:

super_Calvin wrote:

InfinityLoopGaming wrote:

This needs to be bumped.
BUMP
whoah stop with the trash talk will you?
when trash talk starts
stop [voice (trash talk) v]
He isn't trash-talking is he simply just bumping the post and bringing it up to the front page
2 things, i read it wrong and you reply to like all my discussion activity.
say [disscusion content] for (4) secs
wait until <[(username)] = [Randomguy3513]> replies
check reply
show (reply)
wait until <[(read?)] = [yes]>
if <posts of: <[(Randomguy3513)] = [large amount]> then
ask [why?]
end

Last edited by super_Calvin (Oct. 10, 2022 20:28:30)

InfinityLoopGaming
Scratcher
100+ posts

"Create own block" dropdown list

super_Calvin wrote:

randomguy3513 wrote:

super_Calvin wrote:

InfinityLoopGaming wrote:

This needs to be bumped.
BUMP
whoah stop with the trash talk will you?
when trash talk starts
stop [voice (trash talk) v]
He isn't trash-talking is he simply just bumping the post and bringing it up to the front page
2 things, i read it wrong and you reply to like all my discussion activity.
what do you mean?

Powered by DjangoBB