Here,


I tried to post this earlier, but it didnt seem to stay...

Code:

action follow_player{
	
	my.shadow = on;
	while(1){wait(1);
		if(vec_dist(my.x, player.x) < 375){//if(player is 375 quants close to me...
			
			my.skill1 = 5 * time;// set to 0 to stop movement
			
			//watching the player
			vec_set(temp, player.x);
			vec_sub(temp, my.x);
			vec_to_angle(my.pan, temp);
			my.tilt = 0;//dont tilt me in the players direction...
			
		}
		c_move(me, my.skill1, nullvector, glide);
	}
}




Its a start...
just add it to your script, attach it to an entity.


Hope it helps.



Devon.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com