Setting up Multiple Midways

Inserting the Midway Bar Object in Lunar Magic

While in Layer 1 or Layer 2 editing mode, open the manual object insertion window either by pressing Insert, or via the menu: Edit > Insert manual....

The custom midway object is inserted into your ROM as 2D and this value goes in the Command field of this dialog.

Respawn Location

To change where Mario will respawn after collecting this midway, you will set a 4-digit value in the Extension Field. The value put here will dictate the entrance type as well as either the level number or a secondary entrance number where Mario will respawn.

*This is obsolete in Lunar Magic 3.00+

Keep in mind some values will need leading zeroes to work correctly, e.g. respawning at secondary entrance 12C would be 012C and not 12C.

Note: some of these settings can be used to make a midway respawn a player in any place in the game not just within the same level or connected sublevels.

Once inserted, it will appear in Lunar Magic as a green square, but will appear as the normal Midway Tape object in-game.


Multiple Midway Options in Retry System

The retry system has a per-level configuration setting for midways (see Local settings - %checkpoint for details), which sets the behavior of midways bars and level entrances in the specified sublevel.

Using the %checkpoint instruction in settings_local.asm you can set the midway behaviour, for each and every sublevel, with the one of following values:

Note: this setting can be used in conjunction with the midway objects detailed above.

Examples


Return to main page