14 users online: Angel Miranda, caw, GangsterJerby, HammerBrother, Humpty Dumpty Magazine, Hwailaluta, Moltz, Morph Moth, Pawnshow, RedYoshi87, RollingRigatonis, Shiki_Makiro, TheMorganah, Yutuz - Guests: 102 - Bots: 173
Users: 62,815 (2,618 active)
Latest user: Vanilla_salmonella

Edit Level Timer by Aurel509

File Name: Edit Level Timer
Submitted: by Aurel509
Authors: Aurel509
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This code allows you to edit the normal timer quite a bit with some custom features.

Read the ASM for more info

Credit would be nice if used.
Tested With:
Lunar Magic 3.11
UberASM 1.4
SA-1 1.32
ZMZ 1.08

The timer keeps on ticking when the game is paused or freeze flag is active, which can cause unintended effects. In case of death, the game will lock up. You should add a check for pause and freeze flag ($13D4 and $9D respectively).

Other issues:
-The timer doesn't reset propertly, always setting tens and ones to zero. the problem is at lines 219 and 220, instead of STZ there should STA

-There are a few instances where minor optimizations could be done. Some examples:
--you don't need RTL after BRA, it won't trigger since we already jumped to where BRA was pointing (line 217 for example)
--instead of doing LDA.b #0 : STA $0F31|!addr you can do STZ $0F31|!addr, something you're already doing on the same line with other addresses
--if you want init to reset timer on !Reversed condition you can just put init label right next to ResetTimer label (no need to BRA to ResetTimer)