Tip: Layer 3 backgrounds and tides disappear when you hit a message box, so plan your level around that. For example, you can add a sublevel without layer 3 at the start/midpoint, and include your message there.
An easy to configure level code for creating warp hubs.
It displays a custom text in the top left corner, switching between values when pressing left or right and when pushing A or B sends you to the designated level.
The text displayed, destination level and amount of levels can be easily changed, just add or remove values from the tables.
Fixed the level names not getting displayed in SA-1, remove SA-1 remaps (UberASM already features it on its own), made Mario freeze (because the D-Pad is used) with the code and made here and there some optimisations.
As mention in the discription, this is a very good debug tool (hence why I have added a "debug" tag). Keep in mind that you don't switch the levels (as in actual levels), you only switch a room.
Edit: And keep in mind that you can only use the midway point exit when Lunar Magic has installed the customisable midway point ASM hack, that midway points are independand of the main entrance, at least once.