In need of some help

Working on a game and I’ve got two questions. One is where you chase the enemies, however I can’t seem to figure out how to get the enemies to run away instead of chasing the player. The next question I have is using the health bar as a progress bar to proceed to the next level. https://flowlab.io/game/view/711280

Th answer to 2 is basically just the filter behavior and the answer to 1 MIGHT be the logic behavior. Im not 100% sure.