The Dink Network

How to end a DMOD

December 20th 2010, 08:45 AM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Hey, just a quick question... I've finished my christmas game, but after the credits nothing happens. It's not a glitch or anything, I just don't know what code to use to send the player back to the main menu (title screen). Could anyone quickly tell me? Thanks
December 20th 2010, 09:44 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
kill_game();

     kill_this_task();
		}

}
December 20th 2010, 10:47 AM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Thanks Skull, I'll try that out in a couple minutes!

EDIT: Nah, that quits the whole game... I just need it to go back to the title screen where all the start/continue/quit buttons are.
December 20th 2010, 01:15 PM
eye.gif
synbi
Peasant He/Him Finland
 
I don't think there's any command that does that, actually. If nothing else works for you, you can always do it the hard way - make a new screen with sprites that looks (and functions) exactly like your title screen, then use set_mode(2);

Or just use kill_game(); like Skull suggested
December 20th 2010, 01:43 PM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
Oh, well in that case.

   unfreeze(1);
   restart_game();
   kill_this_task();
   }
December 20th 2010, 02:04 PM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Thanks skull! It didn't seem to work at first, but then I realised it's 'cos I never told the game to fade up again, haha