How do I restart the entire game?


(FuturistTeletex) #1

I dont know how to do this… and i am not a programmer… but currently in the game i am working on the programmer has set it that the game progresses to the next level when either you fall into a pit or run out of time…

what i need it to do is… just restart the entire game

so… i assume i need to change this line to say something else… but could be way off… and also have no idea how to do it…

public function gameOver():void{ FP.world = new GameWorld();


(Sharp) #2

With a single line as you may assume it’s impossible to tell. That line seems like the key here anyway.