Locked Doors And Items Reappearing After leaving screen

Locked doors and items for me have been reappearing after leaving the screen and coming back, and this is a HUGE issue for my game considering I use locked doors alot.
Can anyone help me figure out a way to fix this? :?:
Thanks in advance!
 

dale_coop

Moderator
Staff member
Check the "TILE_INDEX_LOCK" constant in « project settings > User Constants »...
You need to set it to the value of your door tile. This constant is used to replace tiles when your player re-enters in a triggered screen.

The value should be the tile id (graphics) of your door:
2019-08-08-23-22-26-NES-MAKER-4-1-5-Version-0x159-Basic-Adv-MST.png

Here, my door tile uses the "4A" tile ID (graphics).
(Note: the "COL_INDEX_LOCK" value corresponds to the AttributesBits / collision value... "04", here)

"#$4A" in hex <-> "74" in decimal (there is a number converter in the "plugins" of NESmaker, in the hierarchy).
So, in the "Script Settings > User Constants", my "TILE_INDEX_LOCK" should have the value "74", in order to work correctly.
2019-08-08-23-30-59-Project-Settings.png
 
Top Bottom