Discuss Scratch

xXRedTheCoderXx
Scratcher
1000+ posts

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

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

I want a new E block! Let me show you.
run {
...
} and {
...
} :: control
Basically, it will run two scripts at once.
run {
...
} and {
run {
...
} and {
run {
...
} and {
...
} :: control
} :: control
} :: control
Or three! Or four! Pretty much as many as you want.

Now, this would be really useful with forever loops.
when green flag clicked
run {
forever
wait (5) secs
show
wait (5) secs
hide
end
} and {
forever
next costume
end
} :: control
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
run {
...
} and {
...
} :: control
This would also be useful for compacting scripts in general.

Yes, you could put code underneath this block, unlike the forever block. Code stacked underneath this block will run when all code is done running in the run, and run block(s). So, if you put a forever loop in one of the branches of this block, code underneath it will never run.

I hope you like my idea!

BEFORE SAYING THE WORKAROUND IS “EASY,” READ THESE POSTS:

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.
Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Read the entire OP before posting.

Last edited by xXRedTheCoderXx (Dec. 15, 2020 18:46:52)


_ReykjaviK_
Scratcher
500+ posts

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

There are ways around this, but yes support! It can be helpful! (´▽`ʃ♡ƪ)



have a good day
xXRedTheCoderXx
Scratcher
1000+ posts

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

_ReykjaviK_ wrote:

There are ways around this, but yes support! It can be helpful! (´▽`ʃ♡ƪ)
Thanks! But, how are there ways around this?

KittyFireSt0rm
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?

Broadcast blocks are the only workarounds I can think of right now

404: Signature Not Found
Mr_PenguinAlex
Scratcher
1000+ posts

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

I support.
There's not a workaround if you are using custom blocks.

Vibrato
Scratcher
1000+ posts

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

But why would the same sprite need several different functions under the same custom block?

I understand about indecision

Captain Disillusion wrote:

In software development, deleting, it's just a concept. Some software might have a delete button and when you click it a thing disappears, but it's not really gone. Okay, it's not gone from the memory.




fdeerf wrote:

chances are nobody will find your account, so nobody will follow you.



Za-Chary wrote:

I'm going to close this suggestion as it is technically implemented and rejected at the same time.
kitten769
Scratcher
1000+ posts

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

Support. This would be great for compressing scripts and especially walk cycles, where you want two procedures under one hat block.

BosenChang
Scratcher
1000+ posts

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

This is support!

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
xXRedTheCoderXx
Scratcher
1000+ posts

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

Vibrato wrote:

But why would the same sprite need several different functions under the same custom block?
It really depends on what you're coding. Personally, I've needed that many times.

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

_ReykjaviK_ wrote:

There are ways around this, but yes support! It can be helpful! (´▽`ʃ♡ƪ)
Thanks! But, how are there ways around this?

Broadcast blocks are the only workarounds I can think of right now
Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

BosenChang wrote:

This is support!

kitten769 wrote:

Support. This would be great for compressing scripts and especially walk cycles, where you want two procedures under one hat block.

Mr_PenguinAlex wrote:

I support.
There's not a workaround if you are using custom blocks.
Thank you for the support!

KittyFireSt0rm
Scratcher
1000+ posts

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

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

define the thingy you are doing
if <<insert thing>> then
broadcast [tada v]
thingy1 that you were running
end

when I receive [tada v]
the thing you wanted to run at the same time

I understand that they won't exactly be synchronized but it's pretty close

404: Signature Not Found
BosenChang
Scratcher
1000+ posts

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

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

define the thingy you are doing
if <<insert thing>> then
broadcast [tada v]
thingy1 that you were running
end

when I receive [tada v]
the thing you wanted to run at the same time

I understand that they won't exactly be synchronized but it's pretty close
You are right. It takes 0.1 seconds for a block to run from one to the other.

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
xXRedTheCoderXx
Scratcher
1000+ posts

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

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

define the thingy you are doing
if <<insert thing>> then
broadcast [tada v]
thingy1 that you were running
end

when I receive [tada v]
the thing you wanted to run at the same time

I understand that they won't exactly be synchronized but it's pretty close
I don't think you understand this suggestion.

KittyFireSt0rm
Scratcher
1000+ posts

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

xXRedTheCoderXx wrote:

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

...

I understand that they won't exactly be synchronized but it's pretty close
I don't think you understand this suggestion.

Can you explain a little more then?

Last edited by KittyFireSt0rm (June 23, 2020 18:46:03)


404: Signature Not Found
xXRedTheCoderXx
Scratcher
1000+ posts

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

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

...

I understand that they won't exactly be synchronized but it's pretty close
I don't think you understand this suggestion.

Can you explain a little more then?
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.


JackK211424
Scratcher
500+ posts

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

BosenChang wrote:

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

define the thingy you are doing
if <<insert thing>> then
broadcast [tada v]
thingy1 that you were running
end

when I receive [tada v]
the thing you wanted to run at the same time

I understand that they won't exactly be synchronized but it's pretty close
You are right. It takes 0.1 seconds for a block to run from one to the other.
uhh, It takes a lot less then 0.1 seconds for a block to run. it
they should be almost perfectly in sync.

No support because of easy workarounds

when green flag clicked
wait (1) secs
broadcast [Uninstallsupportx2 v]

when I receive [Uninstallsupportx2 v]
uninstall support.exe :: #fc03ec ::
when I receive [Uninstallsupportx2 v]
uninstall support.exe :: #fc03ec ::

Last edited by JackK211424 (June 23, 2020 19:07:24)


BosenChang
Scratcher
1000+ posts

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

JackK211424 wrote:

BosenChang wrote:

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

define the thingy you are doing
if <<insert thing>> then
broadcast [tada v]
thingy1 that you were running
end

when I receive [tada v]
the thing you wanted to run at the same time

I understand that they won't exactly be synchronized but it's pretty close
You are right. It takes 0.1 seconds for a block to run from one to the other.
uhh, It takes a lot less then 0.1 seconds for a block to run. it
they should be almost perfectly in sync.

No support because of easy workarounds

when green flag clicked
wait (1) secs
broadcast [Uninstallsupportx2 v]

when I receive [Uninstallsupportx2 v]
uninstall support.exe :: #fc03ec ::
when I receive [Uninstallsupportx2 v]
uninstall support.exe :: #fc03ec ::
I did not ask for the correct value.

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
JackK211424
Scratcher
500+ posts

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

BosenChang wrote:

-snip-
I did not ask for the correct value.
I did not give you the correct value

Last edited by JackK211424 (June 23, 2020 19:06:47)


xXRedTheCoderXx
Scratcher
1000+ posts

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

JackK211424 wrote:

No support because of easy workarounds

when green flag clicked
wait (1) secs
broadcast [Uninstallsupportx2 v]

when I receive [Uninstallsupportx2 v]
uninstall support.exe :: #fc03ec ::
when I receive [Uninstallsupportx2 v]
uninstall support.exe :: #fc03ec ::
You shouldn't not support something JUST because of a workaround.. especially when the “workaround” you posted isn't even a proper workaround.

Read the posts and all of the OP, please.

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.


BosenChang
Scratcher
1000+ posts

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

JackK211424 wrote:

BosenChang wrote:

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

define the thingy you are doing
if <<insert thing>> then
broadcast [tada v]
thingy1 that you were running
end

when I receive [tada v]
the thing you wanted to run at the same time

I understand that they won't exactly be synchronized but it's pretty close
You are right. It takes 0.1 seconds for a block to run from one to the other.
uhh, It takes a lot less then 0.1 seconds for a block to run. it
they should be almost perfectly in sync.

No support because of easy workarounds

when green flag clicked
wait (1) secs
broadcast [Uninstallsupportx2 v]

when I receive [Uninstallsupportx2 v]
uninstall support.exe :: #fc03ec ::
when I receive [Uninstallsupportx2 v]
uninstall support.exe :: #fc03ec ::
The workaround does not work with custom blocks.

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
KittyFireSt0rm
Scratcher
1000+ posts

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

xXRedTheCoderXx wrote:

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

KittyFireSt0rm wrote:

xXRedTheCoderXx wrote:

Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.

...

I understand that they won't exactly be synchronized but it's pretty close
I don't think you understand this suggestion.

Can you explain a little more then?
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.


ahhhh okay thanks!

404: Signature Not Found

Powered by DjangoBB