Okay, here we go!

You don't want to change the objects angle at all, right?
You simply want to move the object right away from the player's position?

Let's have a look at the example from my post above:

function turn_to_object()
{
vec_set(temp,your.x);
vec_sub(temp,my.x);
vec_to_angle(my.pan,temp); // now MY looks at YOU
}

The first two lines gives you the direction from me/my to you/your, only the third turns the angle of me/my.
This means after the first two lines 'temp' contains the direction which you can add to the position to the object to move it forward exactly away from the players position - I always have to test such things first, because I often forget the exact way how it works, so please, test on your own!

You can scale the direction with vec_scale(temp, push_strength*time_step) - something like this!

If the use of the vectors are still unclear to you in some respects, you can look for the Kinji's Tutorials, the explain this extraordinary well. I don't know where they are hosted at the moment, though.

Last edited by Pappenheimer; 02/05/09 17:54. Reason: Addirional hint to Kinji's Vector Tutorials