I am making a top down shooter game, where you move the player around, and shoot enemies.
Right now, my enemy AI checks that the distance to the Player is less than 500, and if it is, moves in the direction of the player. My main issue is that the enemy will simply slide through a wall. I have both the wall and the enemy solid in their Attributes, and they are on the same layer. Is there a way to keep the enemy from moving through walls?