Discuss Scratch

cooldude-222
Scratcher
100+ posts

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

xXRedTheCoderXx wrote:

cooldude-222 wrote:

@xxRedTheCoderxx
can you make the block run while running it just sounds better and you don't to code you run code.
That was my logic, but people wanted it to change as it may be confusing to some new to coding and technology.

lisa_wolfgang wrote:

Also, this block would need a new name, as it might confuse people who are new to technology and don't know that “run” means something other than making the Scratch Cat run across the screen.

Mr_PenguinAlex wrote:

Maybe “do while doing” would be better?

Maximouse wrote:

And I think “do while” sounds less weird than “run while”.
Ok i guess i understand. Thanks anyway
coder_isaiyah11
Scratcher
100+ posts

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

||||||||||||||||||||||||||||||||||||
|
|(E)
|While doing
|
||||||||||||||||||||||||||||||||||
|
|(E)
|
|
|||||||||||||||||||||||||||||||||||

Last edited by coder_isaiyah11 (Sept. 1, 2020 05:14:40)

ilovericebubbles
Scratcher
100+ posts

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

Support!
Yes, there ARE workarounds (using the broadcast and two receivers and setting local variables and such and such) but they are very complicated.
There are so many ways to use this block, and it makes sense as Scratch already supports multithreading (two when flag clicks and such and such).
It makes more sense than an async or similar block, and would still make sense for new users.
BasisEssence779
Scratcher
100+ posts

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

SUPPORT!!! I don't like be obliged to make two scripts. Mostly I don't like having to make two custom blocks just for one missing block.

Last edited by BasisEssence779 (Sept. 1, 2020 11:05:50)

lovecodeabc
Scratcher
1000+ posts

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

define func1
forever
move (20) steps
broadcast [m1 v]
end
when I receive [m1 v]
do something

when green flag clicked
func1
See

Last edited by lovecodeabc (Sept. 9, 2020 16:35:25)

cooldude-222
Scratcher
100+ posts

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

lovecodeabc wrote:

define func1
forever
move (20) steps
broadcast [m1 v]
end
when I receive [m1 v]
do something

when green flag clicked
func1
See
Did You read the op the point is to not need to use broad casts in custom blocks
lovecodeabc
Scratcher
1000+ posts

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

cooldude-222 wrote:

lovecodeabc wrote:

define func1
forever
move (20) steps
broadcast [m1 v]
end
when I receive [m1 v]
do something

when green flag clicked
func1
See
Did You read the op the point is to not need to use broad casts in custom blocks
Yes but until this is implemented we can do this At Least
Btw the OP is good but we’ll have to wait for implementation.
xXRedTheCoderXx
Scratcher
1000+ posts

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

lovecodeabc wrote:

Yes but until this is implemented we can do this At Least
Btw the OP is good but we’ll have to wait for implementation.
I don't think you fully understand this suggestion - that workaround doesn't completely work.
Also please read this:

xXRedTheCoderXx wrote:

Mr_PenguinAlex wrote:

if you make 2 different custom blocks,
and do this:
when green flag clicked
custom block 1 :: custom
custom block 2 :: custom
it would work like this script, right?
No…

Custom blocks run code underneath them when the custom block is done running.

And with forever loops, that would be never.

The only possible workaround is incredibly complicated and requires a list for every single argument of every single custom block.

xXRedTheCoderXx wrote:

This block's main use is to make custom blocks able to run multiple scripts.

And, as you may know, custom blocks are different from broadcasts because with custom blocks you can add boolean inputs and string inputs. You could only use those inputs when you define the custom block.

So, basically broadcasts can't carry over what you input in the custom block unless you use variables or something but like bruh.

xXRedTheCoderXx wrote:

DownsGameClub wrote:

xXRedTheCoderXx wrote:

So, basically broadcasts can't carry over what you input in the custom block unless you use variables or something but like bruh.
As a person who hasn't used custom blocks in a while, why would using variables be an issue?
Having to make a variable for every single argument in your custom block is beyond tedious and isn't ideal. Having so many variables could cause your variable list to clutter up.

Also, using variables means that you can only run a custom block when it isn't already running, otherwise your variables will change from the other custom block of the same type running, and you'd be left scratching your head wondering why your game doesn't work.

It's hard to put into words, at least for me, but trust me, using variables restricts you, which could lead to the breaking of your game, as well as clutters your variable list making your game as a whole just that bit more unorganized.
arvepro3579
Scratcher
100+ posts

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

This isn't useful, you can just replace it.
xXRedTheCoderXx
Scratcher
1000+ posts

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

arvepro3579 wrote:

This isn't useful, you can just replace it.
Read. The. Entire. OP. Please.

xXRedTheCoderXx wrote:

Mr_PenguinAlex wrote:

if you make 2 different custom blocks,
and do this:
when green flag clicked
custom block 1 :: custom
custom block 2 :: custom
it would work like this script, right?
No…

Custom blocks run code underneath them when the custom block is done running.

And with forever loops, that would be never.

The only possible workaround is incredibly complicated and requires a list for every single argument of every single custom block.

xXRedTheCoderXx wrote:

This block's main use is to make custom blocks able to run multiple scripts.

And, as you may know, custom blocks are different from broadcasts because with custom blocks you can add boolean inputs and string inputs. You could only use those inputs when you define the custom block.

So, basically broadcasts can't carry over what you input in the custom block unless you use variables or something but like bruh.

xXRedTheCoderXx wrote:

DownsGameClub wrote:

xXRedTheCoderXx wrote:

So, basically broadcasts can't carry over what you input in the custom block unless you use variables or something but like bruh.
As a person who hasn't used custom blocks in a while, why would using variables be an issue?
Having to make a variable for every single argument in your custom block is beyond tedious and isn't ideal. Having so many variables could cause your variable list to clutter up.

Also, using variables means that you can only run a custom block when it isn't already running, otherwise your variables will change from the other custom block of the same type running, and you'd be left scratching your head wondering why your game doesn't work.

It's hard to put into words, at least for me, but trust me, using variables restricts you, which could lead to the breaking of your game, as well as clutters your variable list making your game as a whole just that bit more unorganized.
lapisi
Scratcher
1000+ posts

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

arvepro3579 wrote:

This isn't useful, you can just replace it.
what do you mean by replace?
rdococ
Scratcher
1000+ posts

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

I'd love to see something like this. Currently, the only workarounds are broadcasts and clones, both of which are limited in various ways. With broadcasts, only one instance of a script can run at a time, and with clones, you can't access sprite-local variables, and there's a limit on how many things you can run at once.
cooldude-222
Scratcher
100+ posts

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

@xxRedTheCoderxx I recommend that you add read the entire op to the title
xXRedTheCoderXx
Scratcher
1000+ posts

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

cooldude-222 wrote:

@xxRedTheCoderxx I recommend that you add read the entire op to the title
Good idea, thanks.
ipaddude
Scratcher
100+ posts

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

support
tho like
workarounds mentioned in earlier posts
lovecodeabc
Scratcher
1000+ posts

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

when green flag clicked
f
when green flag clicked
c
define f
...
define c
...
https://scratch.mit.edu/projects/424934761/
That’s what I mean.

Last edited by lovecodeabc (Sept. 12, 2020 12:37:42)

j3r0_plays
Scratcher
100+ posts

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

Oh and also i (A strong resistor(Xd) of this idea) just want to point out that this would make scratch soo much laggier… I mean it wouldnt be hard to abuse this to crash scratch….
xXRedTheCoderXx
Scratcher
1000+ posts

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

j3r0_plays wrote:

Oh and also i (A strong resistor(Xd) of this idea) just want to point out that this would make scratch soo much laggier… I mean it wouldnt be hard to abuse this to crash scratch….
Bruh, how!? Literally everything you can do with this block to cause lag you can already do in Scratch. And, how many times do I have to say this block doesn't cause any extra lag? ;-;

lovecodeabc wrote:

when green flag clicked
f
when green flag clicked
c
define f
...
define c
...
https://scratch.mit.edu/projects/424934761/
That’s what I mean.
Huh? I still don't know what you're trying to say. Maybe explain better by using more than 4 words.

ipaddude wrote:

support
tho like
workarounds mentioned in earlier posts
Bruh. Quote one and I will tell you how it doesn't work, or only works on condition.

MrFluffyPenguins
Scratcher
1000+ posts

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

everyone's just saying that there's workarounds and it can be abused for lag without reading the entire op

this is nothing out of the ordinary for the suggestions forum to be honest
cooldude-222
Scratcher
100+ posts

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

lovecodeabc wrote:

when green flag clicked
f
when green flag clicked
c
define f
...
define c
...
https://scratch.mit.edu/projects/424934761/
That’s what I mean.
my gosh now people won't even read the title

Powered by DjangoBB