That's why I don't really like this thread.
Poeple hardly ever look at it.
Anyway, the code I previous code I posted, didn't work.
I figured out the correct way of doing it and just thought it'd be so nice as to share it with anybody who wants to do something similiar.
Here is the code to check if Mario is withing 5 Blocks (X only) of the sprite
Also, sorry for double posting
Mod edit: Fixed table stretch.
Poeple hardly ever look at it.
Anyway, the code I previous code I posted, didn't work.
I figured out the correct way of doing it and just thought it'd be so nice as to share it with anybody who wants to do something similiar.
Here is the code to check if Mario is withing 5 Blocks (X only) of the sprite
Code
LDA $14E0,x XBA LDA $E4,x REP #$20 CLC ADC.w #$0050 ;The radius times 10 CMP $94 BCS Within_1 BRA Not_Within Within_1: SEC SBC.w #$00A0 ;The radius times 20 CMP $94 BCC Within BRA Not_Within Within: SEP #$20 ;Code for what to do if Mario is within a 5 block radius of the sprite LDA #$F8 STA $AA,x STZ $B6,x JSL $01802A RTS Not_Within: SEP #$20
Also, sorry for double posting
Mod edit: Fixed table stretch.