easiest way i can think of is, as long as the active is greater than some distance from the player, orient it in the direction of the player, and move it to the player. while it is less than some distance from the player, do not move it.
you could combine this with a pathfinding extension so that the active can find the player even behind walls and such.
that's what flags are for. when the player passes over the other active, turn a flag on. then use that flag to determine whether or not to do the code that makes the active follow the player.
I heard about flags but i have 0 experience of that but ill give it a try. But first i need to release for the first time alpha 1.30 OFFICIAL RELEASE... IM ALMOST DONE. They are in small episodes hehehe.
hi alfredo im not perfectly sure what you EXACTLY what / what you are exactly talking about. so since i dont know what exactly you want and how experienced you are the thing the The Cecilizer suggested seems to be the easiet thing you might want to give a try- i think you probably overlooked what he said?
just give your enemy some silly bouncing ball movement and say always look into direction of player and he will follow him. now you can fiddle around with this and improve it.
i never like that method fordom. it causes them to behave robotically, and less fluid. they get attracted to either axis in relation to the player, moving diagonally, until they reach an axis, then move in a straight line along the axis towards the player. its like using the ball movement with only 8 directions.
is everybody making a game about zombies? lol
aside from that i use a very similar method with my zombies in celestia (you may wanna check it out to see if this is what you watn for your zombies)
http://www.create-games.com/download.asp?id=8496
I use the same method fordom posted, but he didnt exactly explain gravity for a terrain that isnt all flat, he explained how to move them left and right.
for gravity you would use
Zombie is overlapping ground (negated) - set Y position of zombie to Y position of zombie +3
So basically that just says if its not overlapping the ground, move it downward (i use 3 because its not too fast and not too slow.)
zombie is overlapping ground - set Y position of zombie to Y position of zombie -3
that just says if he is overlapping the ground, than move him up. works for me, they stay steady at ground level, and when going over a cliff fall at an accurate speed toward the ground. simple, but effective, for me anyway.
[Game design makes my brain feel like its gonna explode.]