Page 1 of 1

Game over help

PostPosted: Wed Jun 21, 2006 3:34 pm
by Zehper48
how can i make the game end and exit game mode when the score reaches 100
can somebody give me step by step i dont think it should be to complicated :wink:

PostPosted: Wed Jun 21, 2006 4:29 pm
by duracel92
Probably an 'if' code

something like

"if.textnumber = 100;
exitgame1;"

The code probably wont work, ask a someone who knows script well.

PostPosted: Wed Jun 21, 2006 5:32 pm
by irblinx
The code is quite straightforward, depending on exactly what you want to do to "exit game mode"

Code: Select all
if (score.textNumber = 100){

// put your exit game code here

}


where "score" is the name of your score actor.


The key is where you place this, it should be part of the code which increases the score.

PostPosted: Sun Jun 25, 2006 11:03 pm
by trajecto
I would suggest moving the view to a "Game Over - Winner!" type screen. You need to reward the player for his hard earned win. Don't just throw the player out when he wins the game. The Game Over screen should have at the least "Play Again" and "Quit" buttons. Even nicer would be an option to view high scores or add your own if you made a new high score.


So within the code above have: view.x += distance;


Where "distance" is the pixel value away your Game Over screen is.