Discuss Scratch

ohdamygoshguys
Scratcher
13 posts

Game over in game

So in my game, you fight through waves of enemies. I need to make a game over screen when you run out of lives. But after that, I need to make something that causes the waves to stop cloning the enemies. What can I do?
Koamodo975
Scratcher
1000+ posts

Game over in game

ohdamygoshguys wrote:

So in my game, you fight through waves of enemies. I need to make a game over screen when you run out of lives. But after that, I need to make something that causes the waves to stop cloning the enemies. What can I do?
in the lose spritewhenclickedsetghosteffectto100WhenIreceiveloserepeat10changeghosteffectby-10
in the spawner spritesWhenIreceivelosestopother scripts in sprite
really simple tbh
ohdamygoshguys
Scratcher
13 posts

Game over in game

Sorry, I should have been more specific. I need a way to have the game be able to be played again after a game over, without clicking the flag again.
Koamodo975
Scratcher
1000+ posts

Game over in game

ohdamygoshguys wrote:

Sorry, I should have been more specific. I need a way to have the game be able to be played again after a game over, without clicking the flag again.
oh ok. You could use the thing I said, and add the first two scripts to a ‘play again’ button. Then when the button's pressed, reset the variables, and use a broadcast and ‘when I receive’ blocks for the spawners.

Powered by DjangoBB