Language…
7 users online:  AmperSam, Flavvless, Rapha2k, SAMYR DUTRA ARAUJO, Sokobansolver, TheInsanity115,  zuccha - Guests: 134 - Bots: 133
Users: 64,455 (2,487 active)
Latest user: dk64_fan

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
Added:
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)
Rating:
0.0 (0 ratings)
No rating
Download 2.82 KiB | 83 downloads

Screenshots

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

Notes:
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.