Discuss Scratch

han614698
Scratcher
1000+ posts

Why does this crash Scratch?

Why does
when I receive [ v]
broadcast [ v]
CRASH Scratch but
when green flag clicked
forever
nothing in here
end
doesn't?
warriorcats2155
Scratcher
500+ posts

Why does this crash Scratch?

I think that the forever when green flag clicked doesn't crash scratch because the Scratch AI does know that command, and can loop it forever. As for the if nothing block, I believe the robot doesn't know what to do in that case, so it crashes.
Raihan142857
Scratcher
1000+ posts

Why does this crash Scratch?

warriorcats2155 wrote:

I think that the forever when green flag clicked doesn't crash scratch because the Scratch AI does know that command, and can loop it forever. As for the if nothing block, I believe the robot doesn't know what to do in that case, so it crashes.
there is no robot or ai

warriorcats2155
Scratcher
500+ posts

Why does this crash Scratch?

Raihan142857 wrote:

warriorcats2155 wrote:

I think that the forever when green flag clicked doesn't crash scratch because the Scratch AI does know that command, and can loop it forever. As for the if nothing block, I believe the robot doesn't know what to do in that case, so it crashes.
there is no robot or ai

I meant by the script.
imfh
Scratcher
1000+ posts

Why does this crash Scratch?

It doesn't crash when I run that script. I don't even get a bit of lag.

when I receive [broadcast1 v]
broadcast [broadcast1 v]

broadcast [broadcast1 v]

Are you sure there isn't something else going on in the project?
han614698
Scratcher
1000+ posts

Why does this crash Scratch?

imfh wrote:

It doesn't crash when I run that script. I don't even get a bit of lag.

when I receive [broadcast1 v]
broadcast [broadcast1 v]

broadcast [broadcast1 v]

Are you sure there isn't something else going on in the project?
Huh, I thought it did…
Barthdry
Scratcher
500+ posts

Why does this crash Scratch?

It doesn't crashes it is another way to loop using scratch
gosoccerboy5
Scratcher
1000+ posts

Why does this crash Scratch?

han614698 wrote:

but
when green flag clicked
forever
nothing in here
end
doesn't?
Scratch is designed to handle loops, and maybe they prepared for the edge case of an empty forever loop.

Powered by DjangoBB