[Tutorial/Script] Simulate QUIT function

O Ilusionista

Captain 100K
Simulate QUIT funciton.
By O Ilusionista - 2018.02.13

There is an undocumented function called "gotomainmenu" which can be used to simulate a QUIT function. Ideal if you use a custom menu.

gotomainmenu(flag);
Usage: gotomainmenu(flag);
Info: Jumps back to main menu, using the selected flag. TESTED.
1 = no gameover, 2 = no halloffame, 4 = no intro.txt; you can use a combination like 1+2 = 3 or all 1+2+4 = 7

3 = Goes directly to TITLE SCREEN (displaying the intro.txt content)
7 = Goes directly to MENU SCREEN (no intro)

The effect takes action affter the level fade out.

You can use this directly on any animation:
Code:
@script
gotomainmenu(3);
@end_script

This could be VERY useful for custom menus :)
 
Back
Top Bottom