Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make game over
- A13XBR013
-
52 posts
How to make game over
How do i make a game over screen come up when you lose all your lives (I already have a hp variable if this helps). Pretty much what i want is one of those classic game over screens to come up when you lose all 3 hearts how do i make the game over show when all hearts are gone?
https://scratch.mit.edu/projects/386915044/#comments-132948261
https://scratch.mit.edu/projects/386915044/#comments-132948261
- JplaysStuff
-
100+ posts
How to make game over
I think the simplest way to do it is to just make a sprite appear that says “GAME OVER” when you lose all your lives, then use
stop [all]
- A13XBR013
-
52 posts
How to make game over
But thats the thing how would i do that I think the simplest way to do it is to just make a sprite appear that says “GAME OVER” when you lose all your lives, then usestop [all]
- A13XBR013
-
52 posts
How to make game over
Ive tried this maybe i typed the code wrong because it seems correct Simple.if <(lives) = [0]> then
broadcast [gameover v]
end
when I recieve [gameover v]
say [GAME OVER!] for [2] secs
stop [all v]
- deck26
-
1000+ posts
How to make game over
The link is to a remix with no sign of Game Over code - can you link to the project you want help on.
- A13XBR013
-
52 posts
How to make game over
I know i just want to know how to make the game over float to the middle of the screen when your lives are gone The link is to a remix with no sign of Game Over code - can you link to the project you want help on.
- JplaysStuff
-
100+ posts
How to make game over
OK, simplest way.
Make a sprite that says Game Over, then:
Make a sprite that says Game Over, then:
when green flag clicked
hide
forever
if <(lives) < [1]> then
show
stop [all]
end
end
- Discussion Forums
- » Help with Scripts
-
» How to make game over