So, i want an object to follow another one. But if the player object gets to far ahead the other one gets stuck behind a wall. So if you go round a corner and the following object gets trapped because it cant follow you since its trying to move towards the player. Which cause it to get stuck against a wall. The code i currently have for it is:
"Create Event"
path = path_add();
"Step Event"
mp_potential_path_object(path, obj_unit_1.x, obj_unit_1.y, 1, 4, obj_border);
path_start(path, 1, 0, 0);
If anyone has already posted about this please mention, thanks