tbizzle
Well-known member
If you followed the tutorial here to bring back monster weapons into your game:
You may want a tile that will not let monsters and monster weapons to not cross. So here ya go!!!!!!!! Script below, I used this with the Metroidvania Module. I haven't tested it out with any other module, still should work.
4.5.9 Bring Back Monster Weapons (Maze Module) and Others!
If your "doHandleObjectCollisions.asm" is missing the area for monster weapons or they seem to be not working for you try this: Using the script of the same name above in Maze module as a base at line 98 you'll see the end of your monster player collision section. "+notPlayerMonsterCollision:"...
www.nesmakers.com
You may want a tile that will not let monsters and monster weapons to not cross. So here ya go!!!!!!!! Script below, I used this with the Metroidvania Module. I haven't tested it out with any other module, still should work.
Code:
LDA Object_flags,x
AND #%00001000
BNE +nextThing
LDA Object_flags,x
AND #%00010000
+nextThing:
BEQ skipMonsterBlock
LDA ObjectUpdateByte
ORA #%00000001
STA ObjectUpdateByte
skipMonsterBlock:
RTS