Original Post
Hi all. I was wondering how you would go about playing certain animations (im using skeletal animation, namely brett's skeletal animation tutorial code on rsn.gamdev) according to certain events. For example, while nothing is happening, I just want my character to stand there and play an 'idle' animation. When I press 'W', I want the forward walk animation to play as well as translating the character forward. Basic game stuff. Although I'm new to animation. Firstly, can I store all of these animations with the same model and just reference a 'start keyframe' and an 'end keyframe' to loop/play thru on the specified event? example: if my timeline had every animation for a character, and death animation was keyframe 50 to 111, is something possible such as: if( bPlayerDead ) { Animate(50, 111); // (start frame, end frame) // return to whatever } or do I store a new model for each animation and load them all at startup and just switch between them? Any advice would be helpful, also any tutorials/articles on the matter :) thanks!!