RE: Vertex/Bones animation
If you animated your model by clicking and dragging the verticies for every frame, then you are using vertex animation. If you are creating a virtual "skeleton" made out of "bones" and moving
them for every frame, then you are using bones animation. (this type of animation can also be blended with code).
EDIT: If you're using vertex animation, this is a much easier way to do it:
Code:
var walk_speed;
var breath_speed;
var jump_speed;
...
action char_walk
{
my.fat= on;
my.narrow= on;
c_setminmax(my);
while(1)
{
if(key_cuu== on)
{
c_move(my,vector(0,6 * time_step,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= 10 * time_step;
}
else
{
ent_animate(my,"stand",breath_speed,anm_cycle);
breath_speed+= 3 * time_step;
}
if(key_cud== on)
{
c_move(my,vector(0,-6 * time_step,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= 10 * time_step;
}
if(key_cul== on)
{
my.pan+= 10 * time_step;
}
if(key_cur== on)
{
my.pan-= 10 * time_step;
}
if(key_j== on)
{
c_move(my,vector(0,0,15 * time_step),nullvector,glide);
ent_animate(my,"jump",jump_speed,anm_cycle);
jump_speed+= 14 * time_step;
}
else
{
c_move(my,vector(0,0,-15 * time_step),nullvector,glide);
}
Mabye it's not any
shorter than your current code, but this would allow your char to move and turn w/ the arrow buttons, and jump with the J key.