Discuss Scratch

oblatespheroid
Scratcher
36 posts

Make it possible to change if to if-else blocks by right-clicking

I run into this problem a lot. It's very infuriating. Support.

However, what would happen to the scripts in the ‘else’ part if you switch to ‘if’?
Ravenpaw-Warrior
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

Semi-support. What if they don't have a right click? //coughcoughsorrylaptopscoughcough// And, just take out the script inside and get
if <> then

else

end
Delphox915
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

Support.
Leadrien2366
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

Support.
and i'm now rarely active in forum, i need clear my post and restart over again to make a better post.
olivegranger
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

Are people really that lazy? No support, they are two blocks with similar names but too different purposes to be converted like that.
Sheep_tester
Scratcher
500+ posts

Make it possible to change if to if-else blocks by right-clicking

olivegranger wrote:

Are people really that lazy? No support, they are two blocks with similar names but too different purposes to be converted like that.
Yes, unfortunately we are. But this also can reduce the chance of crashing when dragging a long script.
jerry1000
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

olivegranger wrote:

Are people really that lazy? No support, they are two blocks with similar names but too different purposes to be converted like that.

But they do not have that much different purpose, the if block checks if something is true then executes it and the if else block does the same thing but it also doubles as a blocks checking if something is false instead of just true. I can't really explain it that well but you can kind of see where I'm coming from.
Invisible_Factory
Scratcher
500+ posts

Make it possible to change if to if-else blocks by right-clicking

Support, really useful when you have the realization you need an if else block instead.
fredfish10
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

dimitrip wrote:

Hi.
I suggest you systematically use if-then-else blocks, even when a simple if would suffice (leaving an empty lag in that case).
Greetz.
Dimitri

i agree
olivegranger
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

jerry1000 wrote:

olivegranger wrote:

Are people really that lazy? No support, they are two blocks with similar names but too different purposes to be converted like that.

But they do not have that much different purpose, the if block checks if something is true then executes it and the if else block does the same thing but it also doubles as a blocks checking if something is false instead of just true. I can't really explain it that well but you can kind of see where I'm coming from.

I think it would be better if maybe the two blocks weren't right next to each other in the script box, that would make it easier to tell them apart I guess…

liam48D
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

olivegranger wrote:

Are people really that lazy? No support, they are two blocks with similar names but too different purposes to be converted like that.
We aren't lazy, we just like to save time.

Last edited by liam48D (Feb. 28, 2016 20:55:01)

Ninkancho
Scratcher
500+ posts

Make it possible to change if to if-else blocks by right-clicking

Support. This would be so helpful and I've run into the same problem on an almost constant basis. It isn't fun grabbing a long stack from beneath an if loop, waiting for the lag to subside, dropping it in empty space, removing the condition and contents from the if and dropping them elsewhere, deleting the if, dragging in a new if-else, dropping it into the script, dropping the condition and contents back in, and laggily dragging and dropping the remainder of the script back underneath the if-else, all just to add a simple failsafe or whatnot.

I'd like to see more such solutions as well for blocks in the same group, like switching between x and y in the relevant motion blocks, or switching between playing a sound and playing it until it's done. If the Scratch Team can add a list of variables that updates in realtime to a context menu section, I don't see why they can't do the same for switching between related blocks that aren't necessarily math-based operators.
awesome-llama
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

BUMP
wayyyy
Scratcher
500+ posts

Make it possible to change if to if-else blocks by right-clicking

Support

A-no-meep
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

Support!
ChatUser2
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

Support. In a sprite I have a large script so it's laggy to edit in this sprite, and I needed to change if to if, else to fix the bug in my game.
kenny2scratch
Scratcher
500+ posts

Make it possible to change if to if-else blocks by right-clicking

baconlover5555 wrote:

its not that hard to just swap them…
How about when you have huge scripts that will lag the editor a lot when moved around? I support, although

Failord wrote:

if you want to go back to a normal “if/then” loop, you would sometimes end up with weird script isolation…
The solution to that would be slightly more complicated to implement. One way that might avoid this problem (although possibly infuriate some people) is to make it impossible to change back to if from if/else. I can't remember any time I had to change from if to if/else, I've only ever done vice versa.
Still, support.
A_Geeky_Jawa
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

Support!

Ravenpaw-Warrior wrote:

Semi-support. What if they don't have a right click? //coughcoughsorrylaptopscoughcough// And, just take out the script inside and get
if <> then

else

end
It is possible to use left click functions on the laptop. Tap the mousepad thing with 2 fingers to do a left click.

Last edited by A_Geeky_Jawa (Jan. 18, 2017 14:41:04)

VideoGamerCanInvent
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

Support


The work around is so easy but it would be nice to have.
space_elephant
Scratcher
500+ posts

Make it possible to change if to if-else blocks by right-clicking

It could also be like this
if<>then{}@addInput::control

if<>then{}else{}@delInput::control
and when you click the arrow it switches to the other block.

Powered by DjangoBB