Discuss Scratch

Tropic
Scratcher
1000+ posts

New Block to act like a break statement

theonlygusti wrote:

Tropic, have you been on for the past 10 hours? Non-stop?
No, I've been on a few minutes every hour this morning, and some hours yesterday (I probably slept in 10 hours instead)
gcenac
Scratcher
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
Scratcher
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
djdolphin
Scratcher
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
Scratcher
1000+ posts

New Block to act like a break statement

djdolphin wrote:

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.
Good idea! If the mobile version of scratch had an edit button, I'd edit my post and add that!

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
Scratcher
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
Scratcher
1000+ posts

New Block to act like a break statement

RPFluffy wrote:

Support it could be an addition to the stop block:

stop [this loop v]
Yes, good idea.

Would have been even more worthwhile if it wasn't in the original post, but I'm glad you support
frodewin
Scratcher
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
Scratcher
1000+ posts

New Block to act like a break statement

frodewin wrote:

support (for having a break statement, any of the discussed names is fine for me)
Thanks!
lilhawkeye05
Scratcher
15 posts

New Block to act like a break statement

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 clicked
create clone of [ v]
Then put this head block.
when I start as a clone
Anyways. 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]
Firedrake969
Scratcher
1000+ posts

New Block to act like a break statement

Support.
Tropic
Scratcher
1000+ posts

New Block to act like a break statement

lilhawkeye05 wrote:

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 clicked
create clone of [ v]
Then put this head block.
when I start as a clone
Anyways. 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!
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)
iamunknown2
Scratcher
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.
Cool_Cat22
Scratcher
100+ posts

New Block to act like a break statement

support!
Tropic
Scratcher
1000+ posts

New Block to act like a break statement

iamunknown2 wrote:

Workaround: Broadcast and wait to other script, then use “stop this script” after broadcasting back.
So I guess you mean something like this?:
broadcast [start loop v] and wait
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
It works but it takes more time than just using a block that exits the loop

Last edited by Tropic (May 1, 2015 14:44:20)

cwrivera99
Scratcher
500+ posts

New Block to act like a break statement

RPFluffy wrote:

Support it could be an addition to the stop block:

stop [this loop v]
Support for this.
YourCat
Scratcher
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
Scratcher
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.

RPFluffy wrote:

Support it could be an addition to the stop block:

stop [this loop v]
Leadrien2366
Scratcher
100+ posts

New Block to act like a break statement

Support.
Sigton
Scratcher
1000+ posts

New Block to act like a break statement

Major support!

Sigton

Powered by DjangoBB