Discuss Scratch

DarthVader4Life
Scratcher
1000+ posts

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

HTML-Fan wrote:

DarthVader4Life wrote:

now that's CoRrect.
Whatever the typos should mean.
Chair of Republic.
WaterComesBack
Scratcher
100+ posts

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

cooldude-222 wrote:

DarthVader4Life wrote:

cooldude-222 wrote:

DarthVader4Life wrote:

I'm getting real sick and tired of people saying “No support, there's a workaround.” Very rarely does a block get removed because of a workaround. so rare in fact, that the only instance of a block getting removed because of a workaround that i am 100% sure happened is the forever if block. even then the extremely simple workaround wasn't the only factor, apparently users didn't understand it either. and because a block has a workaround DOESN'T mean it shouldn't be added. so if you could kindly read this, that'd be great.
You are so right there are so many blocks already in scratch that have workarounds but still make scratch easier an example is if else.
here's some more examples.

change x by ()
change y by ()
next costume
next backdrop
when [ v] key pressed
forever

end
wait until <>
(() - (0))
change [ v] by (0)
Don’t forget
 
If on edge bounce :: motion
The “I” isn't supposed to be capitalized.

Last edited by WaterComesBack (July 28, 2020 15:16:03)

HTML-Fan
Scratcher
1000+ posts

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

cooldude-222 wrote:

Don’t forget
 
If on edge bounce :: motion
That's more complicated, more then just adding var + for change var by.
cooldude-222
Scratcher
100+ posts

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

HTML-Fan wrote:

cooldude-222 wrote:

Don’t forget
 
If on edge bounce :: motion
That's more complicated, more then just adding var + for change var by.
All you need is an if statement
HTML-Fan
Scratcher
1000+ posts

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

cooldude-222 wrote:

HTML-Fan wrote:

cooldude-222 wrote:

Don’t forget
 
If on edge bounce :: motion
That's more complicated, more then just adding var + for change var by.
All you need is an if statement
Two to be more precise. And some math. Maybe you haven't noticed, but that block does more then going to the opposite direction. It mirrors one axis. Anyway, kinda off-topic.

Last edited by HTML-Fan (July 28, 2020 15:21:29)

cooldude-222
Scratcher
100+ posts

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

HTML-Fan wrote:

cooldude-222 wrote:

HTML-Fan wrote:

cooldude-222 wrote:

Don’t forget
 
If on edge bounce :: motion
That's more complicated, more then just adding var + for change var by.
All you need is an if statement
Two to be more precise. And some math. Maybe you haven't noticed, but that block does more then going to the opposite direction. It mirrors one axis. Anyway, kinda off-topic.
I guess you are right
dimayajonelcid
Scratcher
100+ posts

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

I don't really post in the forums, but hey, first post?

Anyway, I would like to support this because this is a very great idea about running 2 lines of code at once in just one script. It would make projects simpler, and the BEST part about it? I could really use the shown block in my projects:
stop [this script v]

It is near impossible to stop a single script while in a scenario like the block (wait (5) seconds) without this block.

So, yeah. this would really make things simpler in scratch projects, especially when using “stop this script.”

Last edited by dimayajonelcid (Aug. 2, 2020 02:01:09)

EpicGhoul993
Scratcher
1000+ posts

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

dimayajonelcid wrote:

I don't really post in the forums, but hey, first post?

Anyway, I would like to support this because this is a very great idea about running 2 lines of code at once in just one script. It would make projects simpler, and the BEST part about it? I could really use the shown block in my projects:
stop [this script v]

It is near impossible to stop a single script while in a scenario like the block (wait (5) seconds) without this block.

So, yeah. this would really make things simpler in scratch projects, especially when using “stop this script.”
Nice first post!
I agree with the idea.
-Rex-
Scratcher
500+ posts

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

dimayajonelcid wrote:

I don't really post in the forums, but hey, first post?

Anyway, I would like to support this because this is a very great idea about running 2 lines of code at once in just one script. It would make projects simpler, and the BEST part about it? I could really use the shown block in my projects:
stop [this script v]

It is near impossible to stop a single script while in a scenario like the block (wait (5) seconds) without this block.

So, yeah. this would really make things simpler in scratch projects, especially when using “stop this script.”
It is actually very easy to stop a running script from another script if you use broadcasts.
set [stopScript v] to [false] // when you want to start the script
broadcast [example v]
...
set [stopScript v] to [true] // when you want to stop the script
broadcast [example v]
when I receive [example v]
if <(stopScript) = [false]> then
script contents :: grey stack
end
This works because broadcast receivers will restart if the broadcast is sent while still running.

Last edited by -Rex- (Aug. 2, 2020 05:18:11)

ZaqGames
Scratcher
3 posts

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

Actually, running 2 things at once is near impossible or you will run in a problem like
when green flag clicked
set [my energy units] to [0]
do two things at once
set [my energy units] to [1000]
and
if <[my energy units] = [1000]> then
say [Lorem] for (1) secs
end
end
But will it say “Lorem” or it won't?
-InsanityPlays-
Scratcher
1000+ posts

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

No support. If you want blocks to be run at the same time, just do:
define run while running
...
...
and check “run without screen refresh”

Last edited by -InsanityPlays- (Aug. 2, 2020 07:13:35)

Scratcheur-2020
Scratcher
100+ posts

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

while <> {
}::control
I maked one here : Hacked Block Collection v2.2
BosenChang
Scratcher
1000+ posts

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

Bump!
LankyBox01
Scratcher
1000+ posts

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

when green flag clicked
broadcast [Script1 v]
broadcast [Script2 v]

when I receive [Script1 v]
...

when i receive [Script2 v]
...
cooldude-222
Scratcher
100+ posts

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

LankyBox01 wrote:

when green flag clicked
broadcast [Script1 v]
broadcast [Script2 v]

when I receive [Script1 v]
...

when i receive [Script2 v]
...
Did you read the op the idea is to do this in a custom block
BosenChang
Scratcher
1000+ posts

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

LankyBox01 wrote:

when green flag clicked
broadcast [Script1 v]
broadcast [Script2 v]

when I receive [Script1 v]
...

when i receive [Script2 v]
...
Does not work with custom blocks! How much times do I have to repeat this?

*silly beast 60-second rule. Met up nearly 15 times, or much more.*
imabanana22
Scratcher
500+ posts

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

This Topic has come far. Anyways, support because it would be easier to make custom block
EpicGhoul993
Scratcher
1000+ posts

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

ZaqGames wrote:

Actually, running 2 things at once is near impossible or you will run in a problem like
when green flag clicked
set [my energy units] to [0]
do two things at once
set [my energy units] to [1000]
and
if <[my energy units] = [1000]> then
say [Lorem] for (1) secs
end
end
But will it say “Lorem” or it won't?
Same question.
scratch978654
Scratcher
100+ posts

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

Actually you can still use broadcasts in CBs.
Maximouse
Scratcher
1000+ posts

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

scratch978654 wrote:

Actually you can still use broadcasts in CBs.
Yes, but
  • “when I receive” blocks have to be outside the custom block;
  • if it's run without screen refresh, broadcasts will run after the block returns.

Powered by DjangoBB