Language…
4 users online: Hammerer, Maw, Rudi_Schrausch, Torchkas - Guests: 284 - Bots: 324
Users: 64,795 (2,377 active)
Latest user: mathew

ON/OFF Double Hit Fix v1.1

UberASM Repository → ON/OFF Double Hit Fix v1.1

Submission Details

Name: ON/OFF Double Hit Fix v1.1
Author: Kevin
Added:
Version History: View
Type: Level, Game Mode
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This code will add a short cooldown to the ON/OFF switches to prevent Mario or sprites to trigger two of them at the same time. Unlike the patch version, this will also work with custom ON/OFF switches.

You can increase the cooldown in the asm file, up to $7F frames (you may want it higher if used in a water level or if you want switches triggered by cape twirls).

Use it in specific levels or in gamemode 14 (for all levels).

It requires 1 byte of freeram.

Update v1.1:
- Rewritten the code so it only uses 1 byte of freeram instead of 2. As a consequence, the cooldown can only go up to $7F instead of $FF.
Tags: lorom on-off sa-1 timer
Comments: 4 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 586 bytes | 594 downloads

Screenshots

Comments (4)

 MarioFanGamer Link
  • Lunar Magic v3.33
  • SA-1 v1.40
  • UberASM Tool v1.5
  • BSNES v115
One thing to note is that this only works when the On/Off state is set to 0 and 1 only which may break some resources which use other values.
HammerBrother Link
Rather than disabling the bounce block of the 2nd bouncable block, it bounces but not flip the switch the second time. This is what Super Mario Maker does.
Ice Man Link
Finally. This has been annoying me for so long. Thanks!
 Major Flare From older version: ON/OFF Double Hit fix Link
Tested with: UberASMTool 1.4, ZMZ 1.08, LM 3.04 and SA-1 1.32.

Accepted.