Discuss Scratch

gosoccerboy5
Scratcher
1000+ posts

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

PkmnQ wrote:

gosoccerboy5 wrote:

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.
Oh, so they practically go on their own paths.
dominic305
Scratcher
500+ posts

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

Easy workaround:
when gf clicked
broadcast [do stuff v] // "do"
... // "while doing"
No support.

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)

dominic305 wrote:

Easy workaround:
when gf clicked
broadcast [do stuff v] // "do"
... // "while doing"
No support.
Yet again, actually read the OP
xXRedTheCoderXx
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.
If this is “essentially the launch block,” then what makes the launch block better than this 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
NanoPIex
Scratcher
500+ posts

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

Can`t you make to seperate scripts?

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)

NanoPIex wrote:

Can`t you make to seperate scripts?

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))
Here's my reply.

The title of this topic wrote:

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)

gosoccerboy5 wrote:

The title of this topic wrote:

FOR THE LOVE OF ALL THAT IS GOOD READ THE ENTIRE OP. I ASKED NICELY BEFORE BUT PEOPLE DON'T SEEM TO CARE. Bruh.
Yeah, it`s harsh, but let`s not get off topic.
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)

gosoccerboy5 wrote:

NanoPIex wrote:

Can`t you make to seperate scripts?

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))
Here's my reply.

The title of this topic wrote:

FOR THE LOVE OF ALL THAT IS GOOD READ THE ENTIRE OP. I ASKED NICELY BEFORE BUT PEOPLE DON'T SEEM TO CARE. Bruh.
They did not make it clear why they don`t like two scripts. Therefore I can object.
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:
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

NanoPIex wrote:

gosoccerboy5 wrote:

-snip-
They did not make it clear why they don`t like two scripts. Therefore I can object.

xXRedTheCoderXx wrote:

But Red!, you may be asking, why can't you just use two scripts like this?
when green flag clicked
forever
wait (5) secs
show
wait (5) secs
hide
end

when green flag clicked
forever
next costume
end
Well, okay, sure, you could do that, but what about when you CAN'T do two scripts?
Yup! I'm talking about custom blocks!
define Jump
There 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 Jump
Do {
...
} while doing {
...
} :: control
This would also be useful for compacting scripts in general.

NanoPIex
Scratcher
500+ posts

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

portalpower wrote:

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:
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

NanoPIex wrote:

gosoccerboy5 wrote:

-snip-
They did not make it clear why they don`t like two scripts. Therefore I can object.

xXRedTheCoderXx wrote:

But Red!, you may be asking, why can't you just use two scripts like this?
when green flag clicked
forever
wait (5) secs
show
wait (5) secs
hide
end

when green flag clicked
forever
next costume
end
Well, okay, sure, you could do that, but what about when you CAN'T do two scripts?
Yup! I'm talking about custom blocks!
define Jump
There 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 Jump
Do {
...
} while doing {
...
} :: control
This would also be useful for compacting scripts in general.

I`m not talking about custom blocks.
portalpower
Scratcher
1000+ posts

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

NanoPIex wrote:

portalpower wrote:

-snip-
I`m not talking about custom blocks.
1. can you stop skimming over the posts for 2 seconds
2. do you know how to snip quotes
NanoPIex
Scratcher
500+ posts

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

portalpower wrote:

NanoPIex wrote:

portalpower wrote:

-snip-
I`m not talking about custom blocks.
1. can you stop skimming over the posts for 2 seconds
2. do you know how to snip quotes
1. I`m not.
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)

NanoPIex wrote:

portalpower wrote:

NanoPIex wrote:

portalpower wrote:

-snip-
I`m not talking about custom blocks.
1. can you stop skimming over the posts for 2 seconds
2. do you know how to snip quotes
1. I`m not.
2. Scratch does that for you.
3. Let`s not get off topic and disrespectful.
but you kinda did
also no it doesn't
MeIzAwezomeDede
Scratcher
1000+ posts

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

NanoPIex wrote:

gosoccerboy5 wrote:

The title of this topic wrote:

FOR THE LOVE OF ALL THAT IS GOOD READ THE ENTIRE OP. I ASKED NICELY BEFORE BUT PEOPLE DON'T SEEM TO CARE. Bruh.
Yeah, it`s harsh, but let`s not get off topic.
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?

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)

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.

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)

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

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

xXRedTheCoderXx wrote:

_ReykjaviK_ wrote:

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

To 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.

Powered by DjangoBB