Hi, I'm having a problem animating my player model. I've got a 5 frame walking animation, such that the first and last frame are in a standing position. The issue is that when he gets to that standing frame, he stays there a little too long, which really throws off the animation. Maybe it's simple, but I can't figure it out for the life of me. Here's the code that controls the animation:
while (key_cuu) {
if (forward_speed_pres < forward_speed_max) forward_speed_pres+=forward_speed_accel;
c_move(player,vector(forward_speed_pres*time_step,0,0),NULL,IGNORE_PASSABLE | GLIDE | USE_POLYGON);
player.skill1 += 8*time_step;
if (player.skill1 >= 100) player.skill1 -= 100;
ent_animate(player,"walk",player.skill1,ANM_CYCLE);
wait(time_step);
}