Hello, I am asking a question about this block I'm using. I want to change it so that when Mario does run into it at full speed, it doesn't hurt him. Here is the code:
Please help, and move this if it is in the wrong section. Thanks!
- BlackMageMario
Code
;Impact block based off smkdan's "speedbreakblock" ;shatters and hurts you when hit at full speed ;act like 130 !BREAKSPEED = $60 JMP Return : JMP MarioAbove : JMP MarioAbove : JMP Return : JMP Return : JMP Return : JMP Return MarioAbove: LDA $7B BPL NoUnsign ;negative? EOR #$FF ;two's complement INC A NoUnsign: CMP #!BREAKSPEED ;test for breakage BCC Return ;return if speed not reached PHB ;preserve current bank LDA #$02 ;push 02 PHA PLB ;bank = 02 LDA #$00 ;default shatter JSL $028663 ;shatter block PLB ;restore bank LDA #$02 ;block to generate STA $9C JSL $00BEB0 ;generate JSL $00F5B7 Return: RTL
Please help, and move this if it is in the wrong section. Thanks!
- BlackMageMario