Monster Vulnerable tile [4.5.6] Advance Maze Tutorial

Arctic Blizzard

New member
For anyone that is creating a Maze game, and has watched the Maze Tutorial Advanced and want to switch the Vulnerable item pick up to a Vulnerable tile which allows to place 4 monsters on the screen. All you do is use this code. Create a new script. Then you will have to delete the code for the Vulnerable state in the ItemPickUp script you made while watching the Advance Maze Tutorial. If you haven't watched it go here. NESmaker: Maze Tutorial - Advanced on Vimeo.
I'm still super new to this and know nothing about coding but I got this to work in my MAZE game.

;;; Monster Vulnerable tile

CPX player1_object
BEQ +isPlayer
JMP +notPlayer
+isPlayer

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; BELOW WILL CHANGE TILE AT COLLISION.

ChangeTileAtCollision #$00, #$00

PlaySound #sfx_powerup
TXA
PHA

LDX #$00
doFindMonstersLoop:
LDA Object_flags,x
AND #%00001000
BEQ +skipThisObject
TXA
STA temp
ChangeActionStep temp, #$06

+skipThisObject
INX
CPX #TOTAL_MAX_OBJECTS
BNE doFindMonstersLoop

PLA
TAX
AddValue #$06, myScore, #$1, #$01
UpdateHudElement #$03


+notPlayer
 
Last edited:
Top Bottom