Originally posted by NamelessProtagonist
I'm having an issue with a a mini-boss I'm trying to set up. The mini-boss is a Homing Thwomp (the version that doesn't drop bombs) in a room full of blocks that shatter when hit by the Thwomp from above. The player is supposed to lure the Thwomp into smashing through the bricks and falling into the lava below.
After that, a door is supposed to spawn so the player can proceed. However, it never does when the Thwomp falls in the lava, leaving the player stranded in the room.
Now, I know the door spawner works, as I've used it in other rooms with other enemies and I haven't had any issue (that said, these other rooms did not involve lava or thwomps). Here's the part of the spawner code that's supposed to check to see if the Thwomp has been killed...
... And then that runs a subroutine that actually creates the door. Any ideas why it won't work for the Homing Thwomp and how to fix it?
And as a second question, how would I check to see if a specific level has been beaten?
After that, a door is supposed to spawn so the player can proceed. However, it never does when the Thwomp falls in the lava, leaving the player stranded in the room.
Now, I know the door spawner works, as I've used it in other rooms with other enemies and I haven't had any issue (that said, these other rooms did not involve lava or thwomps). Here's the part of the spawner code that's supposed to check to see if the Thwomp has been killed...
Code
dcb "MAIN" LDA $1493 BNE RETURN LDA $13C6 BNE RETURN CHECK_SPRITES LDY #$0B LOOP_START: LDA $14C8,y CMP #$08 BCS TestTweakerBits DONT_CHECK: DEY BPL LOOP_START JSR SPAWN_DOOR TestTweakerBits: LDA $1686,y AND #$20 BNE DONT_CHECK RETURN: RTL
... And then that runs a subroutine that actually creates the door. Any ideas why it won't work for the Homing Thwomp and how to fix it?
And as a second question, how would I check to see if a specific level has been beaten?
Still having this issue from two pages back if anyone has any advice.
I have a hack thread - Link (Now with a demo!)
Also a music thread - Link
C3 Projects
2013: Modern Spiny Pack
2012: MGSS v0.1
Spring 2010: SMB2 Autobomb Sprite