Ai - artbased

How to create enemy AI: I have followed Marz’s tutorial which I have found somewhat useful but… I need something like this:

When the enemy see’s you he shoots at you but if a wall or something is in the way… then he doesnt…

ARTBASED – So please dont mention tiles…