Discuss Scratch

summunkid
Scratcher
94 posts

Multiple things in one input.

I think there should be an easier alternative to the
and
block. You should be able to also do something like this:
defineunlockiconiconidifnoticon=iconidnoticonscontainsiconid?thenifnoticonid<1oriconid>100thensetacheivmenttoiconidreplaceitemiconidoficonswithunlockedbroadcastachievmentelsebroadcasterror-icon_id
Instead of having
noticon=iconidandnoticonscontainsiconid?
, 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:
movestepspendown
and
replaceitemofwith
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.
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.
summunkid
Scratcher
94 posts

Multiple things in one input.

Za-Chary wrote:

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.
Thanks! I just think it would be a little less tedious
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)

summunkid
Scratcher
94 posts

Multiple things in one input.

StrangeMagic32 wrote:

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.
Thanks for the support!

Another example just for fun.
whenclickedsayHere are the motion blocks:for2secssaymovestepsturndegreesturndegreespointindirectionpointtowardsgotox:y:gotoglidesecstox:y:changexbysetxtochangeybysetytosetrotationstyleifonedge,bouncexpositionypositiondirectionfor2secs
Also, 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.

Last edited by summunkid (Oct. 29, 2018 22:22:56)

StrangeMagic32
Scratcher
1000+ posts

Multiple things in one input.

summunkid wrote:

StrangeMagic32 wrote:

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.
Thanks for the support!

Another example just for fun.
whenclickedsayHere are the motion blocks:for2secssaymovestepsturndegreesturndegreespointindirectionpointtowardsgotox:y:gotoglidesecstox:y:changexbysetxtochangeybysetytosetrotationstyleifonedge,bouncexpositionypositiondirectionfor2secs
Also, 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.
I still think that it shouldn't be green.
summunkid
Scratcher
94 posts

Multiple things in one input.

StrangeMagic32 wrote:

summunkid wrote:

StrangeMagic32 wrote:

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.
Thanks for the support!

Another example just for fun.
whenclickedsayHere are the motion blocks:for2secssaymovestepsturndegreesturndegreespointindirectionpointtowardsgotox:y:gotoglidesecstox:y:changexbysetxtochangeybysetytosetrotationstyleifonedge,bouncexpositionypositiondirectionfor2secs
Also, 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.
I still think that it shouldn't be green.
It sure would be weird for inputs/arguments to be green.
StrangeMagic32
Scratcher
1000+ posts

Multiple things in one input.

summunkid wrote:

StrangeMagic32 wrote:

I still think that it shouldn't be green.
It sure would be weird for inputs/arguments to be green.
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?)

Last edited by StrangeMagic32 (Oct. 29, 2018 22:59:34)

rdococ
Scratcher
1000+ 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:
iffirstconditionsecondconditionthen. . .

Another idea I had:

-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.

Last edited by -ShadowOfTheFuture- (Oct. 30, 2018 01:20:22)

summunkid
Scratcher
94 posts

Multiple things in one input.

StrangeMagic32 wrote:

summunkid wrote:

StrangeMagic32 wrote:

I still think that it shouldn't be green.
It sure would be weird for inputs/arguments to be green.
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?)
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.
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
summunkid
Scratcher
94 posts

Multiple things in one input.

rdococ wrote:

Alternate version, where the boolean input's background is the same color as it would be without any booleans:
iffirstconditionsecondconditionthen. . .

Another idea I had:

I tried doing the normal boolean insert BG. I was just too lazy and decided it to make it white.
Your idea is great, but:
sayjoinjoinYour score was score!
or
sayjoinYour score was joinscore!

Powered by DjangoBB