Originally posted by B.B.LinkI have a question. With the Latiku boss, do you know if theres a way to change it so if Mario jumps on it, he takes damage. In my hack, in order to stop someone from jumping on him, I had to set invisible blocks above the Lakitu Boss, and that feels tacky to me, so I was wondering if anybody knew how to change that.
Find this part of the code:
LDA $7D ; \ if Mario's y speed < 10 ...
CMP #$10 ; } ... sprite will hurt Mario
BMI SPRITE_WINS ; /
Change SPRITE_WINS to NO_CONTACT
Remove these parts of the code:
MARIO_WINS
JSR SUB_STOMP_PTS ; give Mario points
JSL $01AA33 ; set Mario speed
JSL $01AB99 ; display contact graphic
LDA #$28 ; \ sound effect
STA $1DFC ; /
LDA #$01 ; \ Set stunned state
STA $C2,x ; /
LDA #$20 ; \ Set stunned timer
STA $1564,x ; /
INC $1534,x ; increment sprite hit counter
LDA $1534,x ; \ if sprite hit counter == 3
CMP #HIT_POINTS ; |
BNE SMUSH_SPRITE ; /
LDA #$04 ; \ write frame to show
STA $1602,x ; /
LDA #$02 ; \ set sprite status
STA $14C8,x ; /
STZ $B6,x ; no x speed
LDA #$10 ; \ set y speed
STA $AA,x ; /
RTS ; return
SMUSH_SPRITE
LDA #$0C ; \ time to show semi-squashed sprite = $0C
STA $1FE2,x ; /
LDA $157C,x ; \ change direction
EOR #$01 ; |
STA $157C,x ; /
RTS ; return
Jumping on the Lakitu Boss will now hurt you and spin jumping will bounce you off unless you have the "Don't use default interaction with Mario" unchecked.