So, I've been trying to figure out how to make the SMB2 POW Block sprite that comes with ICB's SMB2 Block Pack activate when it hits other sprites (besides just activating when it is dropped/thrown and hits a wall/floor. I'm not sure if there is a simple solution or if it will require some custom sprite-sprite interaction code. Any guidance/assistance is much appreciated. The relevant sprite code is below.
[?] Miscellaneous Helpful Hints
If I moderated your hack, there was apparently a 90 percent chance it was rejected.
Code
DYING STZ $B6,x STZ $AA,x RTS SPRITE_ROUTINE JSR SUB_GFX LDA $14C8,x ; \ return if CMP #$02 ; | sprite status BEQ DYING ; | is < 8, or CMP #$08 ; | branch to death BCC RETURN ; / handler if dying LDA $9D ; \ return if BNE RETURN ; / sprites locked JSR SUB_OFF_SCREEN_X0 ; only process sprite while on screen LDA $1588,x ; \ if not hitting AND #%00000111 ; | wall, then skip BEQ NOHITWALL ; / this next code KILL lda #$28 ;shake ground STA $1887 jsl $00FA80 ;kill sprites, turn to coins LDA #$16 ; \ Play sound effect STA $1DFC ; / LDA #$02 ; \ make sprite STA $14C8,x ; / start dying NOHITWALL RETURN RTS
[?] Miscellaneous Helpful Hints
If I moderated your hack, there was apparently a 90 percent chance it was rejected.