Discuss Scratch
- Discussion Forums
- » Suggestions
- » "Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
- gosoccerboy5
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Oh, so they practically go on their own paths.Question: does the “do” script end then the “while doing” script ends? Or vice versa? Or they continue regardless of whether the other script has ended?I think they'll continue, but the scripts ending when the other does might be useful if one of the scripts does nothing.
- dominic305
-
Scratcher
500+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Easy workaround:
when gf clickedNo support.
broadcast [do stuff v] // "do"
... // "while doing"
Last edited by dominic305 (Dec. 10, 2020 14:50:22)
- MeIzAwezomeDede
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Easy workaround:Yet again, actually read the OPwhen gf clickedNo support.
broadcast [do stuff v] // "do"
... // "while doing"
- xXRedTheCoderXx
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
This is essentially theIf this is “essentially the launch block,” then what makes the launch block better than this block?launch {block from Snap!. It launches a script that runs while you run other scripts.
script::motion
}::control
(Technically, it looks likelaunch ({script::motion}::grey ring)::controlbut Scratch isn't ready for grey rings)
So, no support. I'm going for a launch block.

- gosoccerboy5
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Takes up less space and is more concise 
Just kidding this is better because it's less confusing

Just kidding this is better because it's less confusing
- NanoPIex
-
Scratcher
500+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Can`t you make to seperate scripts?
Ex.
Ex.
when green flag clicked
say [yoyos are so coolllllll] for (2) secs
when green flag clicked
glide (pick random (1) to (10)) secs to x: (pick random (1) to (10)) y: (pick random (1) to (10))
Last edited by NanoPIex (Dec. 11, 2020 23:15:09)
- gosoccerboy5
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Can`t you make to seperate scripts?Here's my reply.
Ex.when green flag clicked
say [yoyos are so coolllllll] for (2) secs
when green flag clicked
glide (pick random (1) to (10)) secs to x: (pick random (1) to (10)) y: (pick random (1) to (10))
FOR THE LOVE OF ALL THAT IS GOOD READ THE ENTIRE OP. I ASKED NICELY BEFORE BUT PEOPLE DON'T SEEM TO CARE. Bruh.
Last edited by gosoccerboy5 (Dec. 11, 2020 23:24:14)
- NanoPIex
-
Scratcher
500+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Yeah, it`s harsh, but let`s not get off topic.FOR THE LOVE OF ALL THAT IS GOOD READ THE ENTIRE OP. I ASKED NICELY BEFORE BUT PEOPLE DON'T SEEM TO CARE. Bruh.
- gosoccerboy5
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Yeah, but maybe think about what I posted. It was in reply to your last post. I'll make my post more clear.
- NanoPIex
-
Scratcher
500+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
They did not make it clear why they don`t like two scripts. Therefore I can object.Can`t you make to seperate scripts?Here's my reply.
Ex.when green flag clicked
say [yoyos are so coolllllll] for (2) secs
when green flag clicked
glide (pick random (1) to (10)) secs to x: (pick random (1) to (10)) y: (pick random (1) to (10))FOR THE LOVE OF ALL THAT IS GOOD READ THE ENTIRE OP. I ASKED NICELY BEFORE BUT PEOPLE DON'T SEEM TO CARE. Bruh.
- portalpower
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
I thought Js doesn't let you do that so the closest workaround is to make a custom block and check run without screen refresh and all of the scritpts will run very fast it's almost like they're running together, the downside is you can't put certain blocks in like the forever loop and wait until block
also since they it's not possible to make this do you mean like alternating?
ex:
also since they it's not possible to make this do you mean like alternating?
ex:
Do {
add [1] to [list v]
add [2] to [list v]
add [3] to [list v]
add [4] to [list v]
add [5] to [list v]
} while doing {
add [5] to [list v]
add [4] to [list v]
add [3] to [list v]
add [2] to [list v]
add [1] to [list v]
} :: controlthe list would be 1,5,2,4,3,3,4,2,5,1-snip-They did not make it clear why they don`t like two scripts. Therefore I can object.
But Red!, you may be asking, why can't you just use two scripts like this?when green flag clickedWell, okay, sure, you could do that, but what about when you CAN'T do two scripts?
forever
wait (5) secs
show
wait (5) secs
hide
end
when green flag clicked
forever
next costume
end
Yup! I'm talking about custom blocks!define JumpThere are many times you'd need two scripts in a custom block, but it only lets you do one script, because you can't put multiple define hats of the same custom block! This would fix that.define JumpThis would also be useful for compacting scripts in general.
Do {
...
} while doing {
...
} :: control
- NanoPIex
-
Scratcher
500+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
I thought Js doesn't let you do that so the closest workaround is to make a custom block and check run without screen refresh and all of the scritpts will run very fast it's almost like they're running together, the downside is you can't put certain blocks in like the forever loop and wait until blockI`m not talking about custom blocks.
also since they it's not possible to make this do you mean like alternating?
ex:Do {the list would be 1,5,2,4,3,3,4,2,5,1
add [1] to [list v]
add [2] to [list v]
add [3] to [list v]
add [4] to [list v]
add [5] to [list v]
} while doing {
add [5] to [list v]
add [4] to [list v]
add [3] to [list v]
add [2] to [list v]
add [1] to [list v]
} :: control-snip-They did not make it clear why they don`t like two scripts. Therefore I can object.But Red!, you may be asking, why can't you just use two scripts like this?when green flag clickedWell, okay, sure, you could do that, but what about when you CAN'T do two scripts?
forever
wait (5) secs
show
wait (5) secs
hide
end
when green flag clicked
forever
next costume
end
Yup! I'm talking about custom blocks!define JumpThere are many times you'd need two scripts in a custom block, but it only lets you do one script, because you can't put multiple define hats of the same custom block! This would fix that.define JumpThis would also be useful for compacting scripts in general.
Do {
...
} while doing {
...
} :: control
- portalpower
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
1. can you stop skimming over the posts for 2 seconds-snip-I`m not talking about custom blocks.
2. do you know how to snip quotes
- NanoPIex
-
Scratcher
500+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
1. I`m not.1. can you stop skimming over the posts for 2 seconds-snip-I`m not talking about custom blocks.
2. do you know how to snip quotes
2. Scratch does that for you.
3. Let`s not get off topic and disrespectful.
- portalpower
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
but you kinda did1. I`m not.1. can you stop skimming over the posts for 2 seconds-snip-I`m not talking about custom blocks.
2. do you know how to snip quotes
2. Scratch does that for you.
3. Let`s not get off topic and disrespectful.
also no it doesn't
- MeIzAwezomeDede
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
That's not harsh, it's just literally nobody is listening to them- that includes you from a few pages ago because maybe you didn't understand it because you didn't read the op?Yeah, it`s harsh, but let`s not get off topic.FOR THE LOVE OF ALL THAT IS GOOD READ THE ENTIRE OP. I ASKED NICELY BEFORE BUT PEOPLE DON'T SEEM TO CARE. Bruh.
Last edited by MeIzAwezomeDede (Dec. 12, 2020 00:59:19)
- PkmnQ
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
-snip-I think you no like read. I will explain in few words. Normal hat block work with two scripts, but custom block no work with that. Do you get now?
I`m not talking about custom blocks.
Ok, that might've been kinda insulting. I'll use normal sentences.
Normal hat blocks work with two scripts, but custom blocks don't.
Last edited by PkmnQ (Dec. 12, 2020 10:35:13)
- NanoPIex
-
Scratcher
500+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
I`m not talking about custom blocks!-snip-I think you no like read. I will explain in few words. Normal hat block work with two scripts, but custom block no work with that. Do you get now?
I`m not talking about custom blocks.
Ok, that might've been kinda insulting. I'll use normal sentences.
Normal hat blocks work with two scripts, but custom blocks don't.
- mybearworld
-
Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
There are ways around this, but yes support! It can be helpful! (´▽`ʃ♡ƪ)Thanks! But, how are there ways around this?
{define block 1
forever
. . .
end
define block 2
forever
, , , :: grey
end
event :: events hat
broadcast [Execute Block v]
when I receive [Execute Block v]
block 1
when I receive [Execute Block v]
block 2} ⠀⠀⠀⠀= ⠀⠀⠀{event :: events hat
do {
. . .
} while doing {
, , , :: grey
} :: control} :: reporter #aaaPhew, making that took timeTo much work. Support.
Last edited by mybearworld (Dec. 12, 2020 14:08:57)
- ResExsention
-
New Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
It's a cool suggestion, but I would not touch coroutines at all in a beginner programming language.
