I am using this block by MarioE. The green gas bubble seems to have no interaction with it. Are there any changes that could be made to this code to give the green gas bubble some interaction and shatter the blocks? This is the code in the block:
Code
db $42 !horizontal = 1 ; Shatter horizontally? (0 = no, 1 = yes) !vertical = 1 ; Shatter vertically? (0 = no, 1 = yes) !kicked = 0 ; Kicked to shatter? (0 = no, 1 = yes) JMP return : JMP return : JMP return if !vertical JMP main else JMP return endif if !horizontal JMP main else JMP return endif JMP return : JMP return : JMP return : JMP return : JMP return sprites: db $0F,$90 ; What sprite numbers to shatter (more may be added) ;$0F = galoomba, $90 = green gas bubble .end main: PHY LDY.b #sprites_end-sprites-1 LDA $9E,x loop: CMP sprites,y BNE next PLY if !kicked LDA $14C8,x CMP #$0A BNE return endif %sprite_block_position() %shatter_block() RTL next: DEY BPL loop PLY return: RTL if !kicked print "Shatters if a certain sprite is kicked at it." else print "Shatters if a certain sprite touches it." endif