The having them not show/then show looks like glitchy sprites unfortunately, best I can do is have them not move (as if they don't see you). What I found in testing is that they moved at you too fast, so giving them some range before they do that is better... or at least some waiting time before they attack you if you are in range.