Discuss Scratch

FIRECATWIZARD
Scratcher
8 posts

Game Over Screen With Replay Button

I'm Having Trouble With A Game Over Screen Could Some One Please Help Me https://scratch.mit.edu/projects/1047448106
EvanD2008
Scratcher
100+ posts

Game Over Screen With Replay Button

So I'm looking at your code, and the death screen is appearing and disappearing. Only problem is that there isn't any death screen.

When testing the game over screen, I noticed that there was no sound playing after reaching the end of a game. I found out that the “music off” variable in the Menu sprite wasn't being used. This was fixed using this script:
when green flag clicked
forever
if <(music off?) = [false]> then
play sound [Overdrive] until done
else
stop all sounds
end
end

Also, the reason why everything would stop playing music was because of the “stop other scripts in sprite block.” After removing that block, everything in the menu began to work. I hope that helps! I will also remix the project so that you can see what I have done more clearly.

Here is the link to the project.

Last edited by EvanD2008 (Aug. 1, 2024 17:59:09)

Powered by DjangoBB