Discuss Scratch
- Discussion Forums
- » Suggestions
- » New Block to act like a break statement
- Tropic
-
1000+ posts
New Block to act like a break statement
No, I've been on a few minutes every hour this morning, and some hours yesterday Tropic, have you been on for the past 10 hours? Non-stop?

- gcenac
-
100+ posts
New Block to act like a break statement
S to the u to the double p drop it back to the o and bring it back for the r and t
- theonlygusti
-
1000+ posts
New Block to act like a break statement
Bump.
Sorry I'm just bringing up these posts again, but they are necessary.
Well, this one isn't necessary, persay, but it's certainly interesting
Sorry I'm just bringing up these posts again, but they are necessary.
Well, this one isn't necessary, persay, but it's certainly interesting

- djdolphin
-
1000+ posts
New Block to act like a break statement
I think it would be best integrated into the current stop block:
stop [this loop v]The choice would only show up when using the block in a loop to minimize confusion.
- theonlygusti
-
1000+ posts
New Block to act like a break statement
Good idea! If the mobile version of scratch had an edit button, I'd edit my post and add that! I think it would be best integrated into the current stop block:stop [this loop v]The choice would only show up when using the block in a loop to minimize confusion.
But the mobile version of scratch does not have an edit button, so I'll guess I'll have to wait ten hours again.
PS: My iPod is so old the standard version of scratch crashes it.
- RPFluffy
-
1000+ posts
New Block to act like a break statement
Support it could be an addition to the stop block:
stop [this loop v]
- theonlygusti
-
1000+ posts
New Block to act like a break statement
Yes, good idea. Support it could be an addition to the stop block:stop [this loop v]
Would have been even more worthwhile if it wasn't in the original post, but I'm glad you support

- frodewin
-
500+ posts
New Block to act like a break statement
support (for having a break statement, any of the discussed names is fine for me)
- theonlygusti
-
1000+ posts
New Block to act like a break statement
Thanks! support (for having a break statement, any of the discussed names is fine for me)
- lilhawkeye05
-
15 posts
New Block to act like a break statement
I know a block called the for each block.
For all I know NOW, it is like this basic script,
I forgot what the project was called but I have it in my backpack.First. You put a head block like this one.
when green flag clicked
If you wanna put a cloning technique, put this block.Then put this head block.
when green flag clicked
create clone of [ v]
when I start as a cloneAnyways. Then you put the for each block and it says for each v of 10.
For all I know NOW, it is like this basic script,
when green flag clicked
move () steps
turn ccw () degrees
move () steps
Remember, follow me! :lol:
[quote]I'm out now! :cool:[/quote]
- Tropic
-
1000+ posts
New Block to act like a break statement
A cloning technique? I think it's just called cloning block or something like that. (Btw, have you watched Naruto? I'm pretty sure there's a cloning technique there so that might be why you wrote that) I know a block called the for each block.I forgot what the project was called but I have it in my backpack.First. You put a head block like this one.when green flag clicked
If you wanna put a cloning technique, put this block.when green flag clickedThen put this head block.
create clone of [ v]when I start as a cloneAnyways. Then you put the for each block and it says for each v of 10.
For all I know NOW, it is like this basic script,when green flag clicked
move () steps
turn ccw () degrees
move () steps
Remember, follow me!I'm out now!
- iamunknown2
-
1000+ posts
New Block to act like a break statement
Workaround: Broadcast and wait to other script, then use “stop this script” after broadcasting back.
- Tropic
-
1000+ posts
New Block to act like a break statement
So I guess you mean something like this?: Workaround: Broadcast and wait to other script, then use “stop this script” after broadcasting back.
broadcast [start loop v] and waitIt works but it takes more time than just using a block that exits the loop
say (i) // shows the index of John in list
when I receive [start loop v]
set [i v] to [0]
repeat (length of [list v])
if <(item (i) of [list v]) = [John]> then
stop [this script v]
end
change [i v] by [1]
end

Last edited by Tropic (May 1, 2015 14:44:20)
- cwrivera99
-
500+ posts
New Block to act like a break statement
Support for this. Support it could be an addition to the stop block:stop [this loop v]
- YourCat
-
25 posts
New Block to act like a break statement
This post deserves a much-needed bump. Programming in another language (Lego Mindstorms EV3 for a robotics competition, Robocup 2015 to be exact) has changed my scripting style a bit and I use the break loop block a lot, and I find that it is very useful. Especially in Scratch when I tend to use lots of lists and variables.
- IronBit_Studios
-
1000+ posts
New Block to act like a break statement
The post above mine is not a necropost as it provides a logical reason as to why, and offers helpful content.
Support it could be an addition to the stop block:stop [this loop v]
- Discussion Forums
- » Suggestions
-
» New Block to act like a break statement