action blue_follow_path()
{
var dist = 0; // entity walk speed
var LastPos[3];
var Dir[3];
var movement_speed;
//my.shadow = on;
path_set(my, "bluepath"); // Change way1 to the name of your path set in WED
while(1)
{
path_spline(me,my.x,dist); // spline curve for smooth walking
dist += 12*time_step; // change this to change the walk speed
c_move(me,vector(1*time_step,0,0),nullvector,IGNORE_YOU); // this is for collision but you donīt need
vec_diff(Dir,my.x,LastPos);
vec_to_angle(my.pan,Dir);
vec_set(LastPos,my.x);
ent_animate(my, "run", movement_speed, ANM_CYCLE);
movement_speed += 10 * time_step;
//camera_on_me();
wait(1);
}
}