Code:
while(1)
{
temp.x = 0.7 * time_step; // speed
temp.y = player_walk_frames[wait_start]; // min
temp.z = player_walk_frames[wait_end]; // max
player.frame = cycle(player.frame + temp.x, temp.y, temp.z);
wait(1);
}
Also try lowering the 0.7 considerably. I think it's way too high.
Also, another (much easier) way of animating is to use the
ent_animate() function...