Tip: If your level contains elements that temporarily change the music to a global song (such as a P-Switch or a Star), said music will not stop playing after the intended end time if the music bypass setting is set to 00.
This is a pair of sprites: A Switch that can be pressed down by standing on it, and a Gate, that will open when a linked Switch is pressed. You can link Switches and Gates together by giving them the same value in extra byte 1 (allowing you to have one Switch open several Gates, or several Switches open one Gate, or any combination). You can also set timers for how long the Gates stay open (including forever), the manner in which they close, the Gate size, and several other Gate and Switch behaviours.
- The Gate must be inserted as the very next number after the Switch in PIXI's list.
- The Gates do NOT interact with sprites, nor do the Switches.
- Tile priority should be enabled on tiles that the Gates can overlap with when opening, to ensure the Gate goes behind.
- The "Clipping.asm" file should be inserted in PIXI's "routines" folder.
- The Switch and Gate each take a sprite slot. Considering SA-1 might be a good idea if you plan to make a level based around these sprites.
Tested with: Lunar Magic 3.21, PIXI 1.32, SA-1 1.32, Snes9x 1.60. The sprite works fine, so accepted. Some minor issues I've found:
- The button seems to be 1 pixel lower than it should. This is more noticeable when the red switch is directly on the ground, and it'll cause Mario to sink 1 pixel into the ground when pressed (no big deal though).
- The switch tends to "suck you in" as soon as you touch it, no matter if you're already on a solid block/sprite. This can lead to easily dying if a solid block is placed right by the side of the red switch, so try not to do that.
- If you jump on the bottom of a gate while it's moving down, you can easily clip through the sprite and die crushed.
- If you jump on a Springboard to the bottom of a gate, you'll clip through it and die crushed (even if it's not moving), due to the high vertical speed a spring gives you.
- The horizontal gates won't carry Mario while moving, so he'll "slide" while on them.
Overall a very nice sprite that would be certainly useful for puzzles or timed challenges.