Discuss Scratch

Athena12913
Scratcher
6 posts

My project won't respond when I press the green flag.

I was making a project, and when I pressed the green button, nothing responded. Why is this happening?
Catscratcher07
Scratcher
1000+ posts

My project won't respond when I press the green flag.

this is probably not scratch's problem, can we have a link to the project?
Athena12913
Scratcher
6 posts

My project won't respond when I press the green flag.

alaix76
Scratcher
5 posts

My project won't respond when I press the green flag.

Athena12913 wrote:

Here's the link: https://scratch.mit.edu/projects/985887194/editor/
Catscratcher07
Scratcher
1000+ posts

My project won't respond when I press the green flag.

The project does respond to the green flag being clicked, the problematic script is this
when green flag clicked
forever
next costume
wait (0.1) secs
end

I can't figure out why this fails to continue, maybe try starting this script with a broadcast triggered by the play button instead.
Athena12913
Scratcher
6 posts

My project won't respond when I press the green flag.

I deleted that script, but the problem is, the scripts won't even glow when I press the green flag. And they only work if I press them directly.

Last edited by Athena12913 (March 21, 2024 20:08:02)

HappyKid54321
Scratcher
100+ posts

My project won't respond when I press the green flag.

The project wasn’t shared. Please share the link so we can view it.
NeonG4
Scratcher
1000+ posts

My project won't respond when I press the green flag.

Athena12913 wrote:

I deleted that script, but the problem is, the scripts won't even glow when I press the green flag. And they only work if I press them directly.
It's likely due to a stop all block running right after the green flag clicked is pressed.
when green flag clicked
set [stop v] to [no]
forever
if <(stop) = [yes]> then
stop [all v]
end
end
Something like this, where the stop variable doesn't get reset to no before it gets checked.
One solution to this problem is to set all variables in a green flag, and after you set them broadcast “green flag”. Then, all other green flags will swap for a “when I receive green flag”
You could also put a wait block before the stop all.
wait (0) secs // waits one frame
forever
...
end
alaix76
Scratcher
5 posts

My project won't respond when I press the green flag.

when green flag clicked
say [] for (2) secs
play sound [ v]
say [] for (2) secs
move () steps
forever

end
HedwigsHat
Scratcher
1000+ posts

My project won't respond when I press the green flag.

alaix76 wrote:

when green flag clicked
say [] for (2) secs
play sound [ v]
say [] for (2) secs
move () steps
forever

end
no blockspam

Powered by DjangoBB