Thanks. I made a method by myself using vec_to_screen. See it below:

First, I defined a vector "dest_close" that returns the position of the destination and will be converted into a XY screen position. Look:
I put the following in a while loop:

Code:
vec_set(dest_close.x,destination.x);
   vec_to_screen(dest_close.x,minimap_view);
   minimap_target_pan.pos_x =  dest_close.x;
   minimap_target_pan.pos_y =  dest_close.y;
   	
   minimap_target_pan.pos_x = clamp(minimap_target_pan.pos_x,x_min,x_max);
   minimap_target_pan.pos_y = clamp(minimap_target_pan.pos_y,y_min,y_max);



And that method works perfectly for me laugh

Thank you for your time...