if (distance(x, y, Character.x, Character.y) < [value for distance])
{
angle = direction(x, y, Character.x, Character.y);
directional_velocity = [enter a value here];
}
else
{
directional_velocity = 0;
}
Users browsing this forum: No registered users and 1 guest