baardbi
Well-known member
It depends on what Solid reaction you have set for those monsters. I know I have a bug in the Explode reaction that could cause this. So you should probably do this anyway. In this file: \BASE_4_5_BBI\Game\MOD_MetroidVania\Subroutines\staticRoutines.asm make the following change:May have found a crash bug, @baardbi. When my monsters collide with a breakable tile, the game locks up. Any thoughts on what might be causing that?
Code:
explode:
LDA Object_x_hi,x
SEC
SBC #4
STA tempA
LDA Object_y_hi,x
SEC
SBC #4
STA tempB
LDA Object_screen,x
ADC #0
STA tempC
DestroyObject
TXA ;;; ------------------------ Backup X register
PHA ;;; ------------------------
;;; ------------------------ Change to OBJ_EXPLOSION
CreateObjectOnScreen tempA, tempB, #OBJ_EXPLOSION, #0, tempC
PLA ;;; ------------------------
TAX ;;; ------------------------ Restore X register
LDA #1
STA shakeOn
RTS
PS! I tried to color code the changes, but it didn't show up here, so I wrote comments with this instead ;;;------------------------- .