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)


Hello, this is my signature!!! I can advertise and write in here. It appears under the horizontal line ^ under every one of my posts!


code
game
dont eat
dont sleep
repeat
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).

Hey there! My name is Nammy. I'm a male Forum Helper and Scratch Wiki Editor.
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!
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)


define Coding with @erencemaltay
say [Lets make a cloud project!] for (2) secs
Conduit7
Scratcher
100+ posts

"Create own block" dropdown list

support, this would be a super helpful optimization for custom blocks


Hi, I'm Conduit.

I speedrun Massive Multiplayer Platformer (0'55.0 seconds), Appel (18.9 level 1, 15.0 level 3), and Getting Over It (1'38)

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)


No idea what to put here. Somebody find me an evil kumquat. *Looks around* Okay, seriously, why do evil kumquats only appear when you don't want them? Jeez, I need at least five sentences to make this a good signature. Wait, this is actually a signature.
when green flag clicked
forever
if <Following Oofahman> then


change [your money] by ($500000)

else
say [You meanie.]
end
end
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)


Hello, I am a coder who likes to experiment and create things on Scratch! I don't release projects that much lately because I have many big projects I'm working on. If you like you can come check out my released projects by clicking my profile picture at the top left of this post. I don't look to get famous on Scratch, but it feels good when people see my projects. Well, see you next post!
-@Endless-Ocean

wait until <(the world is flat?) = [true]>
And the ocean is endless, if you ask me. Ctrl+shift+down or else you'll miss out

Welcome to the hidden world of Endless-Ocean's signature!

Here you can just… um… whatever idk
Nice down here isn't it?

Pikachuf1
Scratcher
77 posts

"Create own block" dropdown list

support, I can see how this could be very useful

hover over my signature and scroll down to see the rest of my signature

Hi I'm Pikachuf1 and I'm a professional idiot

you see that above? than can be you! I make 8k renders of people's minecraft skins! for free! you can ask me on my profile(note that I can't make renders of character creator skins).
if the above image didn't convince you to get one, here's some of my past work:



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.

- Seon8

This is a forum signature, where people explain forum signatures!

I follow most of the topics I post in. You can respond with another post or a comment on my profile.

Check out my profile!
Marc92020
Scratcher
1000+ posts

"Create own block" dropdown list

bump

Marc92020
i do stuff

image updates whenever i check
Cordongreen
Scratcher
1000+ posts

"Create own block" dropdown list

say [Wow, this topic was alive since the year I was born]

My name is Cordongreen. I'm thinking of making projects and maybe even writing???

when forums entered::#5e02cf hat
always{

if <[post v]is[supposed to show v]::extension> then
load [post v]::#a2cf02
load [signature v]at x:(-90)y:(-20)::#a2cf02
}::#02cf9f
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)

Check out my request place:
bsteichman
Scratcher
100+ posts

"Create own block" dropdown list

Support! I’ve wanted this to be here so many times

Woah, a signature! :: control
super_Calvin
Scratcher
24 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)


______________________________________________________
hi i am super calvin! reveiwer of disscusions for thigs we NEED in
scratch!

when (idea) made
if <[idea] = [good]> then
support
end
InfinityLoopGaming
Scratcher
100+ posts

"Create own block" dropdown list

This needs to be bumped.
BUMP

Hello, I am InfinityLoop (he/him/his)
You can find me here, on GitHub, or on itch.io.
I enjoy coding and making music.
super_Calvin
Scratcher
24 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]

______________________________________________________
hi i am super calvin! reveiwer of disscusions for thigs we NEED in
scratch!

when (idea) made
if <[idea] = [good]> then
support
end
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


(Male) (He/Him) (2000+ posts) (4 Years)
Banner by depresso-boiyo, check him out!
Ctrl+shift+down to check out my projects!


Thanks for scrolling; if you like what I do, please follow me!
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

Hello, I am InfinityLoop (he/him/his)
You can find me here, on GitHub, or on itch.io.
I enjoy coding and making music.
super_Calvin
Scratcher
24 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)


______________________________________________________
hi i am super calvin! reveiwer of disscusions for thigs we NEED in
scratch!

when (idea) made
if <[idea] = [good]> then
support
end
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?

Hello, I am InfinityLoop (he/him/his)
You can find me here, on GitHub, or on itch.io.
I enjoy coding and making music.

Powered by DjangoBB