I would like to have an enemy move towards you only if you are in their line of sight. Like if I was behind a wall, they wouldn't follow me but if I turned the corner they would start following me. I'm a noob and I don't know how to make this happen. Can someone help me or at least explain how I would work this out? The game I'm making is a top-down style game.