Well I ussally make my own commands, here is a part of my animation system.
int addAnim(int start, int end)
{
int mayAdd = 1;
int freeplace;
for(int i=0; i<100; i++)
{
if (mayAdd == 1)
{
if( (animStart[i]==0) && (animEnd[i]==0) && (animPlace[i]==0) )
{
animStart[i] = start*oneFrame;
animEnd[i] = end*oneFrame;
freeplace = i;
mayAdd = 0;
}
}
}
return freeplace;
}
void playAnim(int id, int animName)
{
if(mayPlay==1)
{
currentFrame += frameStep*animSpeed;
if ( currentFrame < animStart[animName])
{
currentFrame = (float)animStart[animName];
}
if ( currentFrame >= animEnd[animName] )
{
currentFrame = (float)animStart[animName];
}
dbSetObjectFrame(id,currentFrame);
}
}
...If you need any eloboration? Please say.