TechSlave Posted November 15, 2016 Share Posted November 15, 2016 I'm doing a game for university and i don't know how to make it start and restart, like when you open the game page and when you lose, to restart, how should i do that? Basically, the game should start when i press some button, keep going for a time and when the time reachs zero the player lose, his score is showed and he can press a button to restart. I'm noob on javascript, learning just for this game. I already got help here and i'm learning things slow, but couldn't manage to do that, any help? Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted November 15, 2016 Share Posted November 15, 2016 post your scene, I got you bro. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted November 16, 2016 Share Posted November 16, 2016 Functions :-) You can either reload the entire scene, E.g using a createScene function like in the PG, on restart; dispose, re-run createScene. Or you can use the same scene and make a restart function which resets everything to default values, disables stuff that shouldn't be visible at start, etc :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.