Code To Restart Fenix?


Mark

Boris Johnson: Cuddly Conservative
Joined
Dec 27, 2003
Messages
2,806
Location
Stoke-On-Trent UK
Website
www.gp-magazine.org.uk
Right, I now it's a bit of a stupid question but I'm completly stumped. I wrote my first 'game' yesterday that I'll upload later, but there's one main problem with it; I don't know how to make a command that will run the program from the begininng at the touch of a button.

I've tried everything, like making a process right at the start to call, calling a process that's already there-pretty much everything.

Is there a simpe way to restart the game when I press B?
 
That's merely holding up a process(if there is only one ok yes, the game) while B isn't pressed. Best way to start over I think is to manually kill all processes, wipe as much variables as you can and call the process that starts the game(if you start the game in the main program process I think you can call it with main(), heard that somewhere, haven't tried). There is no way to do that(restart) automatically as far as I know.
 
Unfortunately (or luckily, who knows) there's no "goto" instruction in Fenix, so try to keep the program well structured and do as Moogle suggests, cause there's no other way.
 
Back
Top