I create an action called "robotico".
Robotico follows the player and can run on the stairs and so on.
But, if you see, when cbabe is walking on the stairs she makes little "crazy jumpings" ( i dont know how to call that effect).

Download the file here, please.

http://www.prodigweb.com/descargas/base.rar



The code of the action is this:

action robotico()
{

var Distancia_Suelo = 0;
var run_percentage = 0;
my.skill50 = -8;
while(1)
{
vec_set(temp, player.x);
vec_sub(temp,my.x);
Distancia_Suelo = c_trace(vector(my.x,my.y,my.z + my.Desfase_z),vector(my.x,my.y,my.z - 4000), IGNORE_ME | IGNORE_PASSABLE | USE_BOX );
my.z -= Distancia_Suelo;
vec_to_angle(my.pan, temp); // VOLTEA AL ENEMICO HACIA EL JUGADOR
c_move (my, vector(2 * time_step, 0, 0), NULL, GLIDE );
ent_animate(my, "walk", run_percentage, ANM_CYCLE); // EJECUTA LA ANIMACION CORRER
run_percentage += 6 * time_step;
wait(1);

}
wait(1);
}





thanks, if you can contribute to improve it and elminate the "crazy jumpings"

Last edited by Erick_Castro; 12/19/09 03:53.