You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

move_follow

move_follow(object,speed)
Makes the calling instance follow a given instance at a given speed.
COPY/// move_follow(object,speed)
//
//  Makes the calling instance follow a given instance at a given speed.
//
//      object      object or instance (or all), real
//      speed       speed to follow at, real
//
/// gmlscripts.pro/license
{
    if (point_distance(x,y,argument0.x,argument0.y) > 0) {
        direction = point_direction(x,y,argument0.x,argument0.y);
        speed = argument1;
    }
    return 0;
}

Contributors: Purple_Flamingo

GitHub: View · Commits · Blame · Raw