So while I was working on my custom block, I have come across my problem.
The block I am working on behaves like this:
When a (non-)lineguided grinder hits the block, the block should shatter.
Problem: The block displays the shatter effect when it gets hit from the left ( ->[ß]). But it doesn't erase the tile itself!
Everything else works perfectly fine. How come? Here is the code:
As you can see, I pasted the 'block position routine' twice. Yet, nothing happens. The problem remains. why
My blog. I could post stuff now and then
My Assembly for the SNES tutorial (it's actually finished now!)
The block I am working on behaves like this:
When a (non-)lineguided grinder hits the block, the block should shatter.
Problem: The block displays the shatter effect when it gets hit from the left ( ->[ß]). But it doesn't erase the tile itself!
Everything else works perfectly fine. How come? Here is the code:
Code
JMP Return : JMP Return : JMP Return : JMP Start : JMP Start : JMP Return : JMP Return Start: LDA $9E,x ;\ CMP #$67 ; | BEQ Exec ; |Make sure the sprite really is a grinder! CMP #$B4 ; | BEQ Exec ;/ Return: RTL Exec: LDA $D8,x STA $98 LDA $E4,x STA $9A LDA $14D4,x STA $99 LDA $14E0,x STA $9B PHB ;\ LDA #$02 ; | PHA ; | PLB ; |shatter the block LDA #$00 ; | JSL $028663 ; | PLB ;/ LDA $D8,x STA $98 LDA $E4,x STA $9A LDA $14D4,x STA $99 LDA $14E0,x STA $9B LDA #$02 ;\ STA $9C ; |Generate invisible map16 tile. JSL $00BEB0 ;/ RTL
As you can see, I pasted the 'block position routine' twice. Yet, nothing happens. The problem remains. why
My blog. I could post stuff now and then
My Assembly for the SNES tutorial (it's actually finished now!)