I recently came up with the idea of replacing the "if, else" blocks. Instead, there would be a different version in which you can [color-green]add or subtract the number of conditions[/color], plus the "else" section, in case none of the above were met. If would replace nesting the "if, else" blocks multiple times. Here's a mock-up:
I made the original picture, and olivora added the plus/minus buttons that I forgot.
What do you think?
I wrote:
Notice: this is my 50th post!
Last edited by Rexpup (2011-03-27 15:08:22)
Offline
Offline
kayybee wrote:
Actually, what would work is this:
<if>
<else>
<if>
<else>
<if>
<else>
<end>[/blocks]
Just put a whole bunch of the if/else blocks inside each other.
Do you have any idea how confusing that gets when there's a lot of those? This would work a lot like the case switch in Java, which is really useful. I support.
Offline
Use the {< > or < >} block.
Last edited by scratch_yoshi (2011-03-27 23:10:45)
Offline
Harakou wrote:
kayybee wrote:
Actually, what would work is this:
<if>
<else>
<if>
<else>
<if>
<else>
<end>[/blocks]
Just put a whole bunch of the if/else blocks inside each other.Do you have any idea how confusing that gets when there's a lot of those? This would work a lot like the case switch in Java, which is really useful. I support.
Yeah, I'm trying to replace nesting a ton of those.
Offline
I don't like it, not useful... Unless you know your X and Y on Scratch, which I don't.
Offline
rdococ wrote:
I don't like it, not useful... Unless you know your X and Y on Scratch, which I don't.
It is useful. I get really annoyed nesting these.
X is left/right, and Y is up/down. X is -240 to 240, and Y is 180 to -180. Besides, this has so many more uses than just X/Y stuff.
Last edited by Rexpup (2011-04-13 20:01:53)
Offline
Harakou wrote:
rdococ wrote:
I don't like it, not useful... Unless you know your X and Y on Scratch, which I don't.
What does this have to do with x and y positions?
I didn't exactly know what he was talking about either.
Offline
While this is slightly useful, it won't be a priority because it can be done using the nesting feature. But I agree, it would be nice to have.
Offline
TVflea wrote:
rdococ wrote:
I don't like it, not useful... Unless you know your X and Y on Scratch, which I don't.
almost everyone knows X and Y unless you are in 3rd grade
Although I think that Scratchers should learn about X and Y, I don't think you should call people 3rd graders.
TheSaint wrote:
While this is slightly useful, it won't be a priority because it can be done using the nesting feature. But I agree, it would be nice to have.
So, do you support?
Offline
Rexpup wrote:
TVflea wrote:
rdococ wrote:
I don't like it, not useful... Unless you know your X and Y on Scratch, which I don't.
almost everyone knows X and Y unless you are in 3rd grade
Although I think that Scratchers should learn about X and Y, I don't think you should call people 3rd graders.
TheSaint wrote:
While this is slightly useful, it won't be a priority because it can be done using the nesting feature. But I agree, it would be nice to have.
So, do you support?
i do!
Offline
Wait -- give me a chance to change my mind! Actually, I swapped my thoughts on it: Uses I would use it for:
- My Syn(t)OS!
- Different actions on buttons, so they can be spoken on?
Offline
rdococ wrote:
Wait -- give me a chance to change my mind! Actually, I swapped my thoughts on it: Uses I would use it for:
- My Syn(t)OS!
- Different actions on buttons, so they can be spoken on?
Yeah, those would be good aplications for it. You can change your mind on it.
tvflame wrote:
i do!
Yay.
ian528 wrote:
Use the << <and> >> block.
No, I want different things to happen for different functions.
Here's a link to the Scratch Suggestions page for this topic.
Offline
SUPPORT. This would be useful in those 1-sprite-1-script games.
OT: I'm going to the mall today. :3
Offline
I like it.
Why do you write in colors like that?
Offline
I was going to code this block!
Offline