I have added support (more or less, some things still come out screwed up) for animation to the pc version of the plugin for Bayonetta. I usually load several animation at the same time as they are packaged together.
I have a list of animation created by:
Code: Select all
noesisAnim_t *anim = rapi->rpgAnimFromBonesAndMatsFinish(bones, bone_number, matrixes, hdr.frameCount, 60);
anim->filename = rapi->Noesis_PooledString(fname);
anim->aseq = rapi->Noesis_AnimSequencesAlloc(1, hdr.frameCount);
anim->aseq->s->startFrame = 0;
anim->aseq->s->endFrame = hdr.frameCount - 1;
anim->aseq->s->frameRate = 60;
anim->aseq->s->name = rapi->Noesis_PooledString(fname);
if (anim)
{
animList.Append(anim);
}
Code: Select all
int anims_num;
noesisAnim_t *anims = rapi->Noesis_AnimsFromList(animList, anims_num);
rapi->rpgSetExData_AnimsNum(anims, anims_num);
Any idea of how I can switch between several animations?
Thanks