Views: 934,417,659
11 users online: AmnesiaSilence,  Anorakun, Dark Prince, Giga, gui, Hamilton64, Luis Carrasquero, lx5,  MarkAlarm, musicalman, SuperMegaNick - Guests: 95 - Bots: 128 Users: 52,124 (2,113 active)
Latest: AmnesiaSilence
Tip: If you're patching a BPS/IPS file to a ROM, make sure that your ROM is clean (unmodified) before you patch it. If it's not clean, use ROMclean to fix it.
Not logged in.
Timed ON/OFF Switch Block by JamesD28
Forum Index - Valley of Bowser - Moderation Questions - Blocks - Timed ON/OFF Switch Block by JamesD28
Pages: « 1 » Link
File Name: Timed ON/OFF Switch Block
Submitted: by JamesD28
Authors: JamesD28
Act As: 130
Includes GFX: No
Description: This is a block that when hit from below, will flip the ON/OFF switch for a set duration of time, before reverting back. You can also set a duration multiplier, and have it trigger by sprites and capespins.
Uses 2 bytes of freeRAM.

Requested by Stivi.
Tested with: Lunar Magic 3.21, GPS 1.4.21, UberASM Tool 1.4, SA-1 1.32, Snes9x 1.60.
Works fine for the most part, but there's an issue which needs to be fixed. If you hit/interact with the block on the same frame that the timer goes to 0, you can make it trigger it again without it changing the state, which will result in the ON/OFF having the wrong status when the timer goes to 0 again (actually, the state changes on that frame, but it's then changed again on the next frame. This is pretty easy to do with cape, as you just need to spin jump some time before the switch reverts back, but it's also possible with sprites and Mario (although frame perfect). Also, I'm not sure the !freeram2 flag is needed, shouldn't the timer be enough?
Another suggestion is to also add a Mario fireball option.
Pages: « 1 » Link
Forum Index - Valley of Bowser - Moderation Questions - Blocks - Timed ON/OFF Switch Block by JamesD28

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Super Mario Bros. X Community
  • Mario Fan Games Galaxy
  • sm64romhacks