TubbieRanger
New member
Whenever I open a locked door, it warps me.
ChangeTileAtCollision #$02, underSecret
ChangeTileAtCollision #$00, underSecret ;; <-- a null walkable tile
FindLockedDoorTilesTarget_onScreenLoad:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; FIND TRIGGER TYPE HERE
LDA collisionTable,y
CMP #$03 ;; compare to locked door target type
;; if your trigger type is NOT #$06
;; then change this to the tile type
;; of your trigger
BNE notALockedDoorTarget_onScreenLoad
LDA #$02
STA collisionTable,y ;; collision table is changed.
;; graphics are a little trickier
ChangeTile #$00, underSecret
FindLockedDoorTilesTarget_onScreenLoad:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; FIND TRIGGER TYPE HERE
LDA collisionTable,y
CMP #$03 ;; compare to locked door target type
;; if your trigger type is NOT #$06
;; then change this to the tile type
;; of your trigger
BNE notALockedDoorTarget_onScreenLoad
LDA #$00 ;; <-- a null walkable tile
STA collisionTable,y ;; collision table is changed.
;; graphics are a little trickier
ChangeTile #$00, underSecret