This site requires JavaScript, please enable it in your browser!
Greenfoot back
TheMidget
TheMidget wrote ...

2018/3/11

I need help! How do you make it when a certain amount of points is not reached Game over

TheMidget TheMidget

2018/3/11

#
Hi, I need help when the person doesn't get a certain score how do I make it game over.
danpost danpost

2018/3/11

#
TheMidget wrote...
when the person doesn't get a certain score how do I make it game over.
Well, first you would need some indicator for when this condition should be checked. This could be a time limit or a limit on number of moves. It could be at a certain break point as like the end of a level or something else. Whatever this indicator is, when indicated, check the score and either allow the game to continue or not. To stop the game, usually all it takes is a "Game Over" text message (with possibly showing the score) and stopping the scenario (using "Greenfoot.stop();").
You need to login to post a reply.