Discuss Scratch
- Discussion Forums
- » Suggestions
- » Multiple things in one input.
- summunkid
- Scratcher
94 posts
Multiple things in one input.
I think there should be an easier alternative to the
Side note, I had to make the boolean insert white instead of a dark yellow to make it more realistic
Blocks like:
But you should probably keep the
<> and <>block. You should be able to also do something like this:
define unlock icon (icon id)Instead of having
if <{
not <(icon)=(icon id)>
not <[icons v] contains (icon id)?>
}::#fff> then
if <not <<(icon id)<[1]>or<(icon id)>[100]>>> then
set [acheivment v] to (icon id)
replace item (icon id) of [icons v] with [unlocked]
broadcast [achievment v]
else
broadcast [error-icon_id v]
end
end
<not <(icon)=(icon id::custom-arg)>>and<not<[icons v] contains (icon id::custom-arg)?>>, you could put multiple of those in the same argument.
Side note, I had to make the boolean insert white instead of a dark yellow to make it more realistic
Blocks like:
move () stepsand
pen down
replace item ( v) of [ v] with []should be able to be put in string inputs.
But you should probably keep the
<>and<>block so that New Scratchers won't have to make things tedious or have any difficulty with making projects.
q
- Za-Chary
- Scratcher
1000+ posts
Multiple things in one input.
Neutral support.
I don't think this is any easier or harder than the “add” block we have now. Sure, the one we have now can be problematic because it would make for really long scripts horizontally, but your suggestion could also be problematic for making long scripts vertically.
I don't see any particular benefit to your suggestion, but I also don't see any particular downsides. That being said, if Scratch were to add this in, I'd probably stick with the regular “and” block.
I don't think this is any easier or harder than the “add” block we have now. Sure, the one we have now can be problematic because it would make for really long scripts horizontally, but your suggestion could also be problematic for making long scripts vertically.
I don't see any particular benefit to your suggestion, but I also don't see any particular downsides. That being said, if Scratch were to add this in, I'd probably stick with the regular “and” block.
This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
I was a Scratch Team member from May 10th 2019 to October 29th 2021.
my notebook | scratch team essay | accessibility essay
- summunkid
- Scratcher
94 posts
Multiple things in one input.
Thanks! I just think it would be a little less tedious Neutral support.
I don't think this is any easier or harder than the “add” block we have now. Sure, the one we have now can be problematic because it would make for really long scripts horizontally, but your suggestion could also be problematic for making long scripts vertically.
I don't see any particular benefit to your suggestion, but I also don't see any particular downsides. That being said, if Scratch were to add this in, I'd probably stick with the regular “and” block.
q
- StrangeMagic32
- Scratcher
1000+ posts
Multiple things in one input.
Support! I find it very hard for me to keep track of where everything is hooked up especially when they are all green… So a white block (or what ever color block) would be quite nice in this format.
Last edited by StrangeMagic32 (Oct. 29, 2018 16:24:14)
“Remember the worth of souls is great in the sight of God;”
- Doctrine and Covenants 18:10
I have since moved to @JollyWinter
- summunkid
- Scratcher
94 posts
Multiple things in one input.
Thanks for the support! Support! I find it very hard for me to keep track of where everything is hooked up especially when they are all green… So a white block (or what ever color block) would be quite nice in this format.
Another example just for fun.
when flag clickedAlso, I just made a white block to make it realistic. I don't want it to appear as a block, i just want it to appear as the input it was.
say [Here are the motion blocks:] for (2) secs
say ({
move () steps
turn cw () degrees
turn ccw () degrees
point in direction ( v)
point towards [ v]
go to x: () y: ()
go to [ v]
glide () secs to x: () y: ()
change x by ()
set x to ()
change y by ()
set y to ()
set rotation style [ v]
if on edge, bounce
x position
y position
direction
}::#fff) for (2) secs
Last edited by summunkid (Oct. 29, 2018 22:22:56)
q
- StrangeMagic32
- Scratcher
1000+ posts
Multiple things in one input.
I still think that it shouldn't be green.Thanks for the support! Support! I find it very hard for me to keep track of where everything is hooked up especially when they are all green… So a white block (or what ever color block) would be quite nice in this format.
Another example just for fun.when flag clickedAlso, I just made a white block to make it realistic. I don't want it to appear as a block, i just want it to appear as the input it was.
say [Here are the motion blocks:] for (2) secs
say ({
move () steps
turn cw () degrees
turn ccw () degrees
point in direction ( v)
point towards [ v]
go to x: () y: ()
go to [ v]
glide () secs to x: () y: ()
change x by ()
set x to ()
change y by ()
set y to ()
set rotation style [ v]
if on edge, bounce
x position
y position
direction
}::#fff) for (2) secs
“Remember the worth of souls is great in the sight of God;”
- Doctrine and Covenants 18:10
I have since moved to @JollyWinter
- summunkid
- Scratcher
94 posts
Multiple things in one input.
It sure would be weird for inputs/arguments to be green.I still think that it shouldn't be green.Thanks for the support! Support! I find it very hard for me to keep track of where everything is hooked up especially when they are all green… So a white block (or what ever color block) would be quite nice in this format.
Another example just for fun.when flag clickedAlso, I just made a white block to make it realistic. I don't want it to appear as a block, i just want it to appear as the input it was.
say [Here are the motion blocks:] for (2) secs
say ({
move () steps
turn cw () degrees
turn ccw () degrees
point in direction ( v)
point towards [ v]
go to x: () y: ()
go to [ v]
glide () secs to x: () y: ()
change x by ()
set x to ()
change y by ()
set y to ()
set rotation style [ v]
if on edge, bounce
x position
y position
direction
}::#fff) for (2) secs
q
- StrangeMagic32
- Scratcher
1000+ posts
Multiple things in one input.
I'm a bit confused now, inputs/arguments? What I mean is where in scratch does it have those? (do you mean where you input numbers/letters, and also booleans?)It sure would be weird for inputs/arguments to be green. I still think that it shouldn't be green.
Last edited by StrangeMagic32 (Oct. 29, 2018 22:59:34)
“Remember the worth of souls is great in the sight of God;”
- Doctrine and Covenants 18:10
I have since moved to @JollyWinter
- rdococ
- Scratcher
500+ posts
Multiple things in one input.
Alternate version, where the boolean input's background is the same color as it would be without any booleans:
Another idea I had:
if <{
<first condition :: operators>
<second condition :: operators>
} :: #cc9816> then
...
end
Another idea I had:
The royal blue colour scheme. Be aesthetic
Links: Search the forums | Autism PSA
Posts: Make cloud variables suck less | Recursive broadcasts | Sprite-local pen
Projects: YaSL tiny LISP with first-class functions & macros | Object-oriented language in Scratch | node logic simulator | The Powder Project
- -ShadowOfTheFuture-
- Scratcher
1000+ posts
Multiple things in one input.
I think the <and> block works fine. This suggestion would save space, yes, but not that much - to reiterate what @Za-Chary said earlier, you'd just be saving horizontal space at the expense of vertical space. The <and> block is also more similar to the way that “real” programming languages do it, and would also probably make more sense to new Scratchers than the suggestion - given the shape of the blocks and the inputs, it would just seem more intuitive to put booleans together using <and> than fitting multiple booleans into a boolean input. Experienced users would continue using the <and> block out of habit, and new users would use the <and> block instead of this because it would make more intuitive sense. This feature might have its benefits, but in the end I don't think it would help much, and I can see this becoming an unnecessary feature that nobody uses.
To summarize: semi-support, bordering on no support. If you want to save horizontal space, I think a better way would be something like collapsible boolean slots.
To summarize: semi-support, bordering on no support. If you want to save horizontal space, I think a better way would be something like collapsible boolean slots.
Last edited by -ShadowOfTheFuture- (Oct. 30, 2018 01:20:22)
<Insert uncreative signature here>
██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██
███ ███ ██ ████ ██ ███ ███
█████████ █████ █████ █████████
“Though the seasons come and go, and sunshine turns to snow, we will always have tomorrow up ahead.”
- summunkid
- Scratcher
94 posts
Multiple things in one input.
If your talking about the multiple inputs and one thing, no. Scratch does not have vertical input placement (or whatever you want to call it). Try and do it yourself.I'm a bit confused now, inputs/arguments? What I mean is where in scratch does it have those? (do you mean where you input numbers/letters, and also booleans?)It sure would be weird for inputs/arguments to be green. I still think that it shouldn't be green.
If your talking about inputs/arguments, I would expect you to know what those are (cuz you're a scratcher). But if you don't know what they are,
https://en.scratch-wiki.info/wiki/Argument
q
- summunkid
- Scratcher
94 posts
Multiple things in one input.
I tried doing the normal boolean insert BG. I was just too lazy and decided it to make it white. Alternate version, where the boolean input's background is the same color as it would be without any booleans:if <{
<first condition :: operators>
<second condition :: operators>
} :: #cc9816> then
...
end
Another idea I had:
Your idea is great, but:
say (join (join [Your score was ] (score)) [!])or
say (join [Your score was ] (join (score) [!]))
q
- Discussion Forums
- » Suggestions
- » Multiple things in one input.