restarting a game

Non-platform specific questions.

restarting a game

Postby Kodo » Sat Nov 05, 2005 11:55 pm

Is there an easy way to restart a game, so say a player quits their current game and goes back to the front end? When they start again I want everything to be reset is though its the first time theyve run it. The game spans several levels, lots of different actors and positions so I'd like to clean sweep it all back to default. Any ideas please?
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby willg101 » Sun Nov 06, 2005 2:36 am

loadGame();

:? would that work?
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Chai » Wed Nov 16, 2005 10:56 pm

the easy way maybe this way
use this code loadGame(gamefile.exe);

1.created the logo.exe file and when the logo finish put the code
2.created the gamefile.exe when the game over put this code loadGme(logo.exe);

the loadGame(); can load exe files when u export game and can load the ged files in game mode (the both files must in the same folder)

is it help? >_<
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score

Postby Kodo » Thu Nov 17, 2005 12:10 am

hmm, that sounds workable, but ideally id like to stay to just one file. I guess I could just use loadGame(gamefile.exe); , it just means the splash screen will appear before the main title screen, i'll have to have a play :) Thanks for the help guys!
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron