Discuss Scratch
- Discussion Forums
- » Suggestions
- » "Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
- 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.
Now, this would be really useful with forever loops.
Yup! I'm talking about custom blocks!
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:
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.
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 {Basically, it will run two scripts at once.
...
} and {
...
} :: control
run {Or three! Or four! Pretty much as many as you want.
...
} and {
run {
...
} and {
run {
...
} and {
...
} :: control
} :: control
} :: control
Now, this would be really useful with forever loops.
when green flag clickedBut Red!, you may be asking, why can't you just use two scripts like this?
run {
forever
wait (5) secs
show
wait (5) secs
hide
end
} and {
forever
next costume
end
} :: control
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.
run {
...
} and {
...
} :: control
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:
No… if you make 2 different custom blocks,
and do this:when green flag clickedit would work like this script, right?
custom block 1 :: custom
custom block 2 :: custom
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.
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.
Read the entire OP before posting.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.As a person who hasn't used custom blocks in a while, why would using variables be an issue? So, basically broadcasts can't carry over what you input in the custom block unless you use variables or something but like bruh.
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.
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)
Thanks! But, how are there ways around this? There are ways around this, but yes support! It can be helpful! (´▽`ʃ♡ƪ)
- KittyFireSt0rm
- Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
Thanks! But, how are there ways around this? There are ways around this, but yes support! It can be helpful! (´▽`ʃ♡ƪ)
Broadcast blocks are the only workarounds I can think of right now
404: Signature Not Found
- 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
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.
chances are nobody will find your account, so nobody will follow you.
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::looksIf you want to see my topic “What makes a good topic?”, then go to Which topics are good?
say [hello]
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)
It really depends on what you're coding. Personally, I've needed that many times. But why would the same sprite need several different functions under the same custom block?
Nope! That doesn't work, you can't use the booleans, strings, etc. in a broadcast, only in a custom block.Thanks! But, how are there ways around this? There are ways around this, but yes support! It can be helpful! (´▽`ʃ♡ƪ)
Broadcast blocks are the only workarounds I can think of right now
This is support!
Support. This would be great for compressing scripts and especially walk cycles, where you want two procedures under one hat block.
Thank you for the support! I support.
There's not a workaround if you are using custom blocks.
- KittyFireSt0rm
- Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
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)
You are right. It takes 0.1 seconds for a block to run from one to the other.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
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::looksIf you want to see my topic “What makes a good topic?”, then go to Which topics are good?
say [hello]
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)
I don't think you understand this suggestion.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
- KittyFireSt0rm
- Scratcher
1000+ posts
"Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)
I don't think you understand this suggestion.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
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)
This block's main use is to make custom blocks able to run multiple scripts.I don't think you understand this suggestion.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
Can you explain a little more then?
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)
uhh, It takes a lot less then 0.1 seconds for a block to run. itYou are right. It takes 0.1 seconds for a block to run from one to the other.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
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)
I did not ask for the correct value.uhh, It takes a lot less then 0.1 seconds for a block to run. itYou are right. It takes 0.1 seconds for a block to run from one to the other.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
they should be almost perfectly in sync.
No support because of easy workaroundswhen 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 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::looksIf you want to see my topic “What makes a good topic?”, then go to Which topics are good?
say [hello]
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)
I did not give you the correct value-snip-I did not ask for 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)
No support because of easy workaroundsYou shouldn't not support something JUST because of a workaround.. especially when the “workaround” you posted isn't even a proper workaround.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 ::
Read the posts and all of the OP, please.
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)
The workaround does not work with custom blocks.uhh, It takes a lot less then 0.1 seconds for a block to run. itYou are right. It takes 0.1 seconds for a block to run from one to the other.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
they should be almost perfectly in sync.
No support because of easy workaroundswhen 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 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::looksIf you want to see my topic “What makes a good topic?”, then go to Which topics are good?
say [hello]
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)
This block's main use is to make custom blocks able to run multiple scripts.I don't think you understand this suggestion.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
Can you explain a little more then?
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
- Discussion Forums
- » Suggestions
- » "Run, and run" E block (READ THE ENTIRE OP BEFORE POSTING)