I am in the process of writing my first patch, and I am getting strange results. I want any damage whatsoever to kill Mario even if he has a powerup.
For some reason when Mario touches enemy, he shoots into the air like he does on death, and the death jingle plays.
Then he goes into the powerdown animation and he never dies.
Could someone please help me figure out what I am doing wrong?
For some reason when Mario touches enemy, he shoots into the air like he does on death, and the death jingle plays.
Then he goes into the powerdown animation and he never dies.
Could someone please help me figure out what I am doing wrong?
Code
!instakill = $7FB400 ;You may need to change this address if it is already being used. ;If this address contains any value other than #$00, then instakill is active. ;You may use UberASM to set this value on a level by level basis. org $00F5D5 autoclean JSL Hijack freecode Hijack: LDA !instakill BNE KillMario ;KillMario subroutine LDA $19 ;Powerup status BEQ KillMario ;KillMario subroutine RTL KillMario: JSL $00F606