* *
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 18, 2018, 01:05:45 PM

Login with username, password and session length

[Tutorial/Script] Simulate QUIT function

  • 0 Replies
  • 74 Views
*

Offline O Ilusionista

  • Global Moderator
  • Hero Member
  • *****
  • 5295
  • >> I WILL BE AWAY FOR SOME TIME <<
    • BMT - Brazil Mugen Team
[Tutorial/Script] Simulate QUIT function
« on: February 13, 2018, 03:40:41 PM »
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: [Select]
@script
gotomainmenu(3);
@end_script

This could be VERY useful for custom menus :)
« Last Edit: February 13, 2018, 03:42:41 PM by O Ilusionista »

 

Recent

Members
Stats
  • Total Posts: 48704
  • Total Topics: 3342
  • Online Today: 59
  • Online Ever: 316
  • (January 04, 2013, 09:43:02 AM)
Users Online