Discuss Scratch

sterngames
Scratcher
35 posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

great! i shall transmit your suggestion to the ST. have a good day!
silvxrcat
Scratcher
500+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

mybearworld wrote:

xXRedTheCoderXx wrote:

~sniper~
{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 #aaa
Phew, making that took time

To much work. Support.
Support because of this reason.
mybearworld
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

deleted cause [offtopic]

Last edited by mybearworld (Dec. 12, 2020 15:55:40)

portalpower
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

if I had a penny for every time someone posted something covered in the OP, I'd be rich
broadcasting workarounds wouldn't work if you have clones unless you only let the script run once with variables and stuff also local variables wouldn't work
lapisi
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

gosoccerboy5 wrote:

This is essentially the
launch {
script::motion
}::control
block from Snap!. It launches a script that runs while you run other scripts.
(Technically, it looks like
launch ({script::motion}::grey ring)::control
but Scratch isn't ready for grey rings)
So, no support. I'm going for a launch block.
just because a block is in Snap doesn't mean it shouldn't be in Scratch.
gosoccerboy5
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

lapisi wrote:

gosoccerboy5 wrote:

This is essentially the
launch {
script::motion
}::control
block from Snap!. It launches a script that runs while you run other scripts.
(Technically, it looks like
launch ({script::motion}::grey ring)::control
but Scratch isn't ready for grey rings)
So, no support. I'm going for a launch block.
just because a block is in Snap doesn't mean it shouldn't be in Scratch.
That wasn't my implication, and I've sort of changed views since then.
MeIzAwezomeDede
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

NanoPIex wrote:

PkmnQ wrote:

NanoPIex wrote:

-snip-
I`m not talking about custom blocks.
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?

Ok, that might've been kinda insulting. I'll use normal sentences.

Normal hat blocks work with two scripts, but custom blocks don't.
I`m not talking about custom blocks!
I'm losing my sanity here, THIS SUGGESTION IS ABOUT CUSTOM BLOCKS, “”“WORKAROUNDS”“” DON'T WORK FOR THOSE

Please read the op carefully
fdreerf
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

That title is very long. All you really need to say is that there isn't a workaround.


I don't like the name of the block. I like the idea of being able to run two scripts at once* in an E block, but “do while doing” is such a clunky and inelegant name, especially with the verb “do”. I personally can't think of a better name, but it just feels gross to say and read.
Tunde123
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

fdreerf wrote:

That title is very long. All you really need to say is that there isn't a workaround.


-snip-
Read the title again. He is saying that people should read the entire OP. But people didn't seem to care to read it.
fdreerf
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

Tunde123 wrote:

fdreerf wrote:

That title is very long. All you really need to say is that there isn't a workaround.


-snip-
Read the title again. He is saying that people should read the entire OP. But people didn't seem to care to read it.
And he wants people to read the OP because people keep saying there is a workaround. (there is, but it sucks!)
xXRedTheCoderXx
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

portalpower wrote:

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]
} :: control
the list would be 1,5,2,4,3,3,4,2,5,1
What I had in mind was it'd do the blocks from top to bottom, so the list would be 1, 2, 3, 4, 5, 5, 4, 3, 2, 1.

ResExsention wrote:

It's a cool suggestion, but I would not touch coroutines at all in a beginner programming language.

You on page 2 wrote:

Coroutines!

Support. Useful beyond belief.


(source)

Has your view changed since then?

fdreerf wrote:

I don't like the name of the block. I like the idea of being able to run two scripts at once* in an E block, but “do while doing” is such a clunky and inelegant name, especially with the verb “do”. I personally can't think of a better name, but it just feels gross to say and read.
Can't disagree there. The name used to be, “Run, while running,” as in, it runs code while running other code, but it was changed due to people thinking some people might be confused as new coders might not understand what run in this context means.

I honestly think I should get the old name back, what do you think?

fdreerf wrote:

That title is very long. All you really need to say is that there isn't a workaround.
I think I'll keep the title, as the length catches the eye of people, making them read it, which means they'll read the entire OP.

Well, I guess it doesn't make everybody read the entire OP.
fdreerf
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

xXRedTheCoderXx wrote:

fdreerf wrote:

I don't like the name of the block. I like the idea of being able to run two scripts at once* in an E block, but “do while doing” is such a clunky and inelegant name, especially with the verb “do”. I personally can't think of a better name, but it just feels gross to say and read.
Can't disagree there. The name used to be, “Run, while running,” as in, it runs code while running other code, but it was changed due to people thinking some people might be confused as new coders might not understand what run in this context means.

I honestly think I should get the old name back, what do you think?
I think less is more when it comes to blocks. Perhaps
run {
} and {
} ::control
could work, though it'd be weird to refer to this block's name.
sterngames
Scratcher
35 posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

workaround is:
broadcast [broadcast v]
when I receive [broadcast v]
block (1) ::custom
when I receive [broadcast v]
block (2) ::custom
define block (input)
if <(input) = [1]> then

script 1... :: pen

else
script 2... :: pen
end
mybearworld
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

sterngames wrote:

workaround is:
broadcast [broadcast v]
when I receive [broadcast v]
block (1) ::custom
when I receive [broadcast v]
block (2) ::custom
define block (input)
if <(input) = [1]> then

script 1... :: pen

else
script 2... :: pen
end
I think we already had that

mybearworld wrote:

xXRedTheCoderXx wrote:

~sniper~
{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 #aaa
Phew, making that took time

To much work. Support.
xXRedTheCoderXx
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

fdreerf wrote:

I think less is more when it comes to blocks. Perhaps
run {
} and {
} ::control
could work, though it'd be weird to refer to this block's name.
Yes it could, and we could refer to it as a “Run, and run” E block.
run {
} and {
run {
} and {
run {
} and {
run {
} and {
run {
} and {
} ::control} ::control} ::control} ::control} ::control
As that's what the blocks say when snapped together.
mybearworld
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

xXRedTheCoderXx wrote:

fdreerf wrote:

-snip-
Yes it could, and we could refer to it as a “Run, and run” E block.
run {
} and {
run {
} and {
. . .
} :: control} :: control
As that's what the blocks say when snapped together.
Yeah,
run ... and run ... and run ...
makes more sense than
do ... while doing do ... while doing do ...
PkmnQ
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

NanoPIex wrote:

PkmnQ wrote:

NanoPIex wrote:

-snip-
I`m not talking about custom blocks.
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?

Ok, that might've been kinda insulting. I'll use normal sentences.

Normal hat blocks work with two scripts, but custom blocks don't.
I`m not talking about custom blocks!
I know, you were talking about the workaround. I was also talking about the workaround, which DOES NOT WORK WITH CUSTOM BLOCKKS PLEASE LEARN HOW TO READ
lapisi
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

PkmnQ wrote:

NanoPIex wrote:

PkmnQ wrote:

NanoPIex wrote:

-snip-
I`m not talking about custom blocks.
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?

Ok, that might've been kinda insulting. I'll use normal sentences.

Normal hat blocks work with two scripts, but custom blocks don't.
I`m not talking about custom blocks!
I know, you were talking about the workaround. I was also talking about the workaround, which DOES NOT WORK WITH CUSTOM BLOCKKS PLEASE LEARN HOW TO READ
NanoPlex wasn't talking about custom blocks or as you put it “custom blockks” so not working with custom blocks isn't actually important, also:

PkmnQ wrote:

PLEASE LEARN HOW TO READ
can be just as insulting as:

PkmnQ wrote:

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

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

lapisi wrote:

-snip-
NanoPlex wasn't talking about custom blocks so not working with custom blocks isn't actually important
But isn't this entire suggestion about custom blocks?? No workaround will work for them
gosoccerboy5
Scratcher
1000+ posts

"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)

Which one of the scripts will end the E block and continue the next script if it ends? How about, if one script ends, both end?

Powered by DjangoBB