I put the key so you could help me because I tried something like that but am having trouble can figure it then screenshots to show where code was changed once you get it to work
Not entirely sure, your code is a bit confusing so I cant modify it myself. However I think something like this could work. You may need a GOSUB to check if the enemy should display everytime u enter or leave.
Your code starts at @ENEMY, Im guessing thats what makes him appear. You should be able to tell regardless of the colors, sorry I can only help so much.