Language…
27 users online:  Anorakun, ASSATAKKU, AyGaAlPa, BearAndBoarFan, Beefy Chud, Calamandro177,  DeppySlide, E-man38,  Eevee, HeitorPorfirio2006, Heraga, Israelcv12cv, Judas, MarioSonic4life, nordict, OnlySpaghettiCode, Professor Parabeetle, Romano338,  RussianMan, SimFan96,  sincx, STRlantian, TheEPMaker,  TickTockClock, Vanessa, Yoshioshi59_, Yui-Drakon - Guests: 93 - Bots: 170
Users: 54,912 (2,071 active)
Latest user: Plank

ON/OFF Double Hit Fix v1.1

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

Submission Details

Name: ON/OFF Double Hit Fix v1.1
Author: Kevin
Submitted: by  Kevin
Obsoletes: ON/OFF Double Hit fix
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: 3 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 586 bytes | 399 downloads

Screenshots

Comments (3)

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.