Discuss Scratch
- Discussion Forums
- » Suggestions
- » "Create own block" dropdown list
- qwerty116
-
100+ posts
"Create own block" dropdown list
SUPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOORRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRTTTTTTTTTTTTTTTTTTTTT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Example:
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
-
1000+ 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
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
-
87 posts
"Create own block" dropdown list
Yeah. I added new options in quote. 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.
Last edited by erencemaltay (April 27, 2022 18:01:31)
- Conduit7
-
100+ posts
"Create own block" dropdown list
support, this would be a super helpful optimization for custom blocks
- Oofahman
-
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
-
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:
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.
([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
-
77 posts
"Create own block" dropdown list
support, I can see how this could be very useful
- Seon8
-
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.
- Cordongreen
-
1000+ posts
"Create own block" dropdown list
say [Wow, this topic was alive since the year I was born]
- disnottaken_alt
-
100+ posts
"Create own block" dropdown list
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
-
500+ posts
"Create own block" dropdown list
Support! I’ve wanted this to be here so many times
- super_Calvin
-
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.
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
-
100+ posts
"Create own block" dropdown list
This needs to be bumped.
BUMP
BUMP
- super_Calvin
-
27 posts
"Create own block" dropdown list
whoah stop with the trash talk will you? This needs to be bumped.
BUMP
when trash talk starts
stop [voice (trash talk) v]
- randomguy3513
-
1000+ posts
"Create own block" dropdown list
He isn't trash-talking is he simply just bumping the post and bringing it up to the front pagewhoah stop with the trash talk will you? This needs to be bumped.
BUMPwhen trash talk starts
stop [voice (trash talk) v]
- InfinityLoopGaming
-
100+ posts
"Create own block" dropdown list
how am i trash talkingwhoah stop with the trash talk will you? This needs to be bumped.
BUMPwhen trash talk starts
stop [voice (trash talk) v]
- super_Calvin
-
27 posts
"Create own block" dropdown list
2 things, i read it wrong and you reply to like all my discussion activity.He isn't trash-talking is he simply just bumping the post and bringing it up to the front pagewhoah stop with the trash talk will you? This needs to be bumped.
BUMPwhen trash talk starts
stop [voice (trash talk) v]
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
-
100+ posts
"Create own block" dropdown list
what do you mean?2 things, i read it wrong and you reply to like all my discussion activity.He isn't trash-talking is he simply just bumping the post and bringing it up to the front pagewhoah stop with the trash talk will you? This needs to be bumped.
BUMPwhen trash talk starts
stop [voice (trash talk) v]
- Discussion Forums
- » Suggestions
-
» "Create own block" dropdown list