Enemy animation changes due to players location

The enemies animation can change from left, right, up and down depending
on the players position.