Whats the best way to have te player turn smoothly towards a target (that i clicked on) and move to it?

this is the code i have inside a loop :

Code:
 
if(vec_dist(my.x,new_pos)>50)
{my_speed2.x=4;
vec_set(temp,vector(new_pos.x,new_pos.y,my.z));
vec_sub(temp,my.x);
vec_to_angle(my.pan,temp);

ent_move(my_speed2,nullvector);
}




it turns the player to the target immediately instead of in incrememnts.

however, i did try to set the vec to angle pan to another variable ad then if my pan as greater than the target pan it would rotate left an incrememnt and vice versa. but it looks clunky and sometimes the player will miss the target and go turn back and forth.

please help,
Alex