I have noticed at some games enemies stuck on the walls and i decided to make some kind of example how to fix this bug.
a good way how to make following enemy or a friend is to use ball movement so that works and then you go around a corner and your friend or foe gets stuck on corner and tries to get trough a wall solution for this is to make some boxes that chance direction of the follower i cant explain this well so i just made a turorial take it from there:
http://koti.mbnet.fi/~tomix/boxes.gam

I hope this helps people