if(key_force.x != 0 || key_force.y != 0) // if pressed any cursor keys...
{
if(key_v) // and if running
{
my.skill99 += 10 * time_step; // 10 is running speed
ent_animate(my,"run",my.skill99,ANM_CYCLE); // animate MY (player here) with "RUN" animation
}
else
{
my.skill99 += 10 * time_step; // 10 is walking speed
ent_animate(my,"walk",my.skill99,ANM_CYCLE); // animate MY (player here) with "WALK" animation
}
}
else // if cursor keys aren't pressed
{
my.skill99 += 4 * time_step; // 4 is standing speed
ent_animate(my,"stand",my.skill99,ANM_CYCLE); // animate MY (player here) with "STAND" animation
// some models use "idle" instead of "stand" be careful
}