Ok, so I managed to get the animations in and stuff, but I wonder, how do I get it so that when I hit w, he walks forward, but when I release it he gets to an halt with and blends into the idle animation?

function playerscript()
{
while(!key_w) wait(1);
while(1)
{
ent_animate(me, "walk", anim_percentage, ANM_CYCLE); //animates the player
anim_percentage += 10*time_step; // set the animation in motion
c_move(me,vector(10*time_step,0, 0), nullvector, GLIDE); //sets the player in movement
wait (1);
}
}


Last edited by Harstad; 01/26/09 19:20.