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?
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.
Thnx, That worked fine.