How to move an actor towards the character

and what about situation, when it can go like this because obstacles for example? You need always this same position or depending on design, with some ai?