Restarting game completely (SOLVED)

Started by mchammer, Fri 09/03/2007 12:40:52

Previous topic - Next topic

mchammer

I have a lot of global ints witch get a random value in game_start section. When I use RestartGame() function, those globals dont get new random values. Id like to have a button to my game witch would completely restart game and give new values to the globals.

Is that possible?
My 40 bullets - An action/war game.

Lt. Smash

#1
look here:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26978.0

I think that answers your question.

EDIT:
If you want a button for restarting, first create a button.
Name it. (example: btnRestart)
Doubleclick it.
And in the function(btnRestart_Click)
call RestartGame()

It should work if you use Gilbot V7000a's code.

mchammer

My 40 bullets - An action/war game.

SMF spam blocked by CleanTalk