@ello:

Strafing animation is in there. It's either "run" or "walk. Look a the following code. Basically, if move_to_vector.y !=0 (which means the entity is strafing), then animate:


Code:


if (abs(move_to_vector.x) > .5 || move_to_vector.y != 0) // if we are moving
{
if (my.animblend == stand) //if our current animation is stand
{
if (key_shift == 1) { my.blendframe = walk; } else { my.blendframe = run; }
}
if (my.animblend == run && key_shift == 1) { my.blendframe = walk; }
if (my.animblend == walk && key_shift == 0) { my.blendframe = run; }
}}



PS: I've made improvements to this movement code and some simplifications. I'll post them after I resolve a small problem with sometimes getting stuck on bumpy meshes.