13 users online: 3lectro, Cally Cobble, Catx, codfish1002, Golden Yoshi, Hayashi Neru, isaix, JackBooWow248, random_box,  Ringo, ShadowMistressYuko, ShoopDaWhoop, wye - Guests: 971 - Bots: 221
Users: 65,103 (2,285 active)
Latest user: Gabe2005

Switch Flags as Conditional Direct Map16 Flags

UberASM Repository → Switch Flags as Conditional Direct Map16 Flags

Submission Details

Name: Switch Flags as Conditional Direct Map16 Flags
Author: MarioFanGamer
Type: Game Mode
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This simple UberASM library will set the Conditional Direct Map16 flags depending on the !-switches pressed. This allows you to place objects other than the vanilla !-blocks to be affected by !-switches as well as to create inverted !-blocks which only appear when a corresponding switch has not been pressed, all without the use of ObjecTool or custom blocks and ExAnimations.

Though it technically can be used for both level and gamemode, I recommend you to use the latter for consistency unless you're running out of CDM16 flags.
Tags: conditional direct map16 lorom sa-1 switch
Comments: 1 (jump to comments)
0.0 (0 ratings)
No rating
Download 2.82 KiB | 92 downloads


Comments (1)

 Fernap Link
Tested with:
- Lunar Magic 3.40
- SA-1 Pack 1.40
- Snes9x 1.60, Bsnes-plus 05
- UberASM Tool 1.6

Works as advertised, accepted.

- For those thinking about using this, I want to point out that it might be more useful than it seems at first glance. Not just solid/empty "!" blocks can be used, but CDM16 can be used to make any tiles conditionally appear/not appear, or to switch between two alternatives, such as making a door appear if a switch has been pressed, or changing some munchers into safe ground, etc.

- Depending on your overall setup, it may be more convenient to simply have the included library file used in gamemode 11, which will also work. It's also possible to paste the main: routine under load: in the global_code file as well (just make sure to keep RTS at the end instead of RTL). If you're using the Uberasm Tool 2.0 beta, you can also use this simply as either gamemode 11, or as level * under load: also.