This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-02 01:46:59

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

break block

To break out of C's.
Like this: http://www.freeimagehosting.net/uploads/63eba1eb2c.gif Or maybe just http://www.freeimagehosting.net/uploads/6c5408baf6.gif

Useful for when you have a bunch of C blocks in one script, and can't use stop script.


This idea is a little obsolete, look here for the improved one.

EDIT: roijac put this on Scratch Suggestions! Vote here!
EDIT2: I just got this link, which is the "break" feature in other programming languages! Check it out if you don't understand what I want.  wink

Supporters: (12)

mathematics
coolstuff
Harakou
markyparky56
supergarfield
LS97
Dinoclor
CloneCommando1
jslomba
roijac
procSsyn
CI11932
DigiTechs
nickbrickmaster

Last edited by scimonster (2011-07-17 01:19:12)

Offline

 

#2 2011-02-02 02:11:33

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: break block

That's a good idea. I often use something similar in Visual Basic.

Offline

 

#3 2011-02-02 02:51:23

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: break block

Couldn't you just use the [repeat until < >] block?  hmm


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#4 2011-02-02 03:06:20

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

Jonathanpb wrote:

Couldn't you just use the [repeat until < >] block?  hmm

Sometimes, but not always.
I think you should actually be able to choose how many C's to break out of, 'cause if it is in a solitary if, it would just break that if.

Last edited by scimonster (2011-07-10 04:51:35)

Offline

 

#5 2011-02-02 11:12:48

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: break block

You know, that actually does sound quite nice. But you made a good point about choosing how many "Cs" to break out of, because it would probably be in an "if" block to work, and that would just complete the point of it all.  smile  But then it might get rather confusing... Ah, well, it is a nice block.  tongue

Offline

 

#6 2011-02-02 11:29:25

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: break block

Jonathanpb wrote:

Couldn't you just use the [repeat until < >] block?  hmm

[Repeat until < >] finishes the loop first. I admit there would be some situations where an immediate break would be more useful.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#7 2011-02-02 13:03:14

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

I think it's agreed we need something a little more advance than just plain http://www.freeimagehosting.net/uploads/6c5408baf6.gif
So maybe http://www.freeimagehosting.net/uploads/b403d11e28.gif or http://www.freeimagehosting.net/uploads/9ddafa34f1.gif
Maybe even both combined! http://www.freeimagehosting.net/uploads/723687cb2f.gif
What do you think now?

Offline

 

#8 2011-02-03 09:38:16

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

scimonster wrote:

I think it's agreed we need something a little more advanced than just plain http://www.freeimagehosting.net/uploads/6c5408baf6.gif
So maybe http://www.freeimagehosting.net/uploads/b403d11e28.gif or http://www.freeimagehosting.net/uploads/9ddafa34f1.gif
Maybe even both combined! http://www.freeimagehosting.net/uploads/723687cb2f.gif
What do you think now?

That last one should have been a stack block instead of cap block. I'm too lazy to upload another pic.

And: bump!

Last edited by scimonster (2011-02-03 09:38:53)

Offline

 

#9 2011-02-03 16:33:11

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: break block

I support! This would make a great addition to scratch.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#10 2011-02-05 15:10:42

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

markyparky56 wrote:

I support! This would make a great addition to scratch.

Thanks!

Offline

 

#11 2011-02-05 20:46:51

supergarfield
Scratcher
Registered: 2009-07-06
Posts: 27

Re: break block

i support

Offline

 

#12 2011-02-05 23:25:24

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

supergarfield wrote:

i support

Thanks! I think I'll start a supporters list.

Offline

 

#13 2011-02-05 23:44:35

peterkap
Scratcher
Registered: 2009-01-24
Posts: 1000+

Re: break block

0_0

Offline

 

#14 2011-02-06 00:17:59

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

peterkap wrote:

0_0

?

Offline

 

#15 2011-02-06 15:53:39

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: break block

I support your latest suggestion, not the first one. I think it's more complete  big_smile
Anyways yeah, a great idea!

Offline

 

#16 2011-02-07 00:18:45

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

LS97 wrote:

I support your latest suggestion, not the first one. I think it's more complete  big_smile
Anyways yeah, a great idea!

Thanks. I also realized that the original was off a little. I'll add you to supporters list!

Offline

 

#17 2011-03-17 13:35:22

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Offline

 

#18 2011-05-24 13:33:32

Dinoclor
Scratcher
Registered: 2010-06-10
Posts: 1000+

Re: break block

I support!


This is a temporary signature. It will exist until I think of something witty.

Offline

 

#19 2011-05-24 13:42:39

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: break block

Hmmm... I can't see any of those photos, so I'm not sure what you mean.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#20 2011-05-24 14:00:04

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

Pecola1 wrote:

Hmmm... I can't see any of those photos, so I'm not sure what you mean.

Code:

Original:

 __  ______________________
| |_|                     |
| break out of a C block  |
|_________________________|

 __  _____
| |_|    |
| break  |
|________|



Improved:

__  _________________________
| |_|                        |
| break out of (2) C blocks  |
|____________________________|

 __  __________
| |_|          |
| if <> break  |
|_   __________|
  |_|

 __  ______________________________
| |_|                              |
| if <> break out of (2) C blocks  |
|_   ______________________________|
  |_|

Do you like them?

Offline

 

#21 2011-05-24 14:36:19

EzekielE
Scratcher
Registered: 2010-09-26
Posts: 100+

Re: break block

I don't understand, break?

remind me what a c block is


http://mag.racked.eu/cimage/i2260/Achievement++get%21/Find+a+Disk/mca.pnghttp://ezekielelin.com/1x1Gif/image.php

Offline

 

#22 2011-05-24 14:42:08

emboar30
Scratcher
Registered: 2011-05-03
Posts: 100+

Re: break block

EzekielE wrote:

I don't understand, break?

remind me what a c block is

Yeah, I dont know what a c block is either! :-)  big_smile


http://scratch.mit.edu/static/icons/buddy/788987_med.png?t=2011-05-02+15%3A14%3A41
I is epiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiic!     See my stuff here!!!!!

Offline

 

#23 2011-05-24 15:04:43

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: break block

emboar30 wrote:

EzekielE wrote:

I don't understand, break?

remind me what a c block is

Yeah, I dont know what a c block is either! :-)  big_smile

C Block.
Leave the C block is what I want to do.

Offline

 

#24 2011-05-24 15:21:41

CloneCommando1
Scratcher
Registered: 2010-12-02
Posts: 500+

Re: break block

I can see this as really helpful... I support!  big_smile


RANDOM THOUGHT: If the tomato is a fruit, doesn't that make ketchup a smoothie?

Offline

 

#25 2011-05-24 16:17:59

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: break block

The break out of () c blocks... I don't see the point, there is no text-based language equivalent, you get breaks and switches, the two tend to go hand in hand, but if you're a good coder, then you don't need multiple break blocks, you sort of daisy chain them.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer