Code:
var walk_speed;
var breath_speed;
var jump_speed;
...
if(key_cuu== on)
{
c_move(my,vector(6 * time_step,0,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= 7 * time_step;
}
else
{
ent_animate(my,"stand",breath_speed,anm_cycle);
breath_speed+= 3 * time_step;
}
if(key_cud== on)
{
c_move(my,vector(-6 * time_step,0,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= -7 * 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;
}
Kinda the long way, but this is from an old script of mine, so it's very basic.
But that's how you can walk around with animations (if you already have "jump", "walk", and "breath" as animation scenes).
Hope that clears things up.