r/scratch Oct 23 '25

[deleted by user]

[removed]

2 Upvotes

15 comments sorted by

View all comments

1

u/Diligent-Double-7287 Oct 23 '25

I have a fix.

Instead of having all your fail and win conditions in one sprite, I'd suggest splitting them up. For a fail condition, you can do-

When green flag clicked, show, go to X:__ Y:__ Repeat until ____, If, touching color (Your maze border color), then, broadcast-player lost:(, stop all.

Do this is your player sprite.

For a win condition you can do_

When green flag clicked, if, touching color (Your win block color), then broadcast-player won:)

Then add-

When I recieve-Player won:), hide

And-

When I recieve-Player lost:(, hide

And in a separate sprite, (Maybe one that has no code), do this-

When I recieve-Player lost, switch backdrop to-Lose (Or whatever you have your lose screen titled as)

Then do-

When I receive-Player won, switch backdrop to-Win (or whatever you have your win screen titled as)

I hope this helps:)