game maker move object point stop code example
Example: game maker move object to point and then stop
if (distance_to_point(x,y) > dist)
{
move_towards_point(x,y,spd);
else
spd = 0;
}
if (distance_to_point(x,y) > dist)
{
move_towards_point(x,y,spd);
else
spd = 0;
}