Game over help

Game Editor comments and discussion.

Game over help

Postby Zehper48 » Wed Jun 21, 2006 3:34 pm

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:
I like score
User avatar
Zehper48
 
Posts: 241
Joined: Sun Jun 11, 2006 1:34 am
Location: Advanced Noob
Score: 4 Give a positive score

Postby duracel92 » Wed Jun 21, 2006 4:29 pm

Probably an 'if' code

something like

"if.textnumber = 100;
exitgame1;"

The code probably wont work, ask a someone who knows script well.
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score

Postby irblinx » Wed Jun 21, 2006 5:32 pm

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.
irblinx
http://www.irblinx.me.uk/Crania.htm
Current projects: Crania deluxe for Mac, iCrania
User avatar
irblinx
 
Posts: 122
Joined: Wed Apr 19, 2006 11:15 am
Location: Manchester, UK
Score: 6 Give a positive score

Postby trajecto » Sun Jun 25, 2006 11:03 pm

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.
User avatar
trajecto
 
Posts: 86
Joined: Fri Jan 16, 2004 3:12 pm
Location: Michigan, US
Score: 6 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron