Creature* myCreature = new Creature(); MotionMaster* myMotionMaster = myCreature->GetMotionMaster(); myMotionMaster->Start();
Creature myCreature; MotionMaster* myMotionMaster = myCreature.GetMotionMaster(); myMotionMaster->SetAnimation("walk"); myMotionMaster->SetSpeed(2.0f);In this example, a new Creature object is created on the stack, and its motion master is retrieved. The SetAnimation() function is called to set the current animation to "walk", and SetSpeed() is used to set the animation speed to 2x normal. The Creature Animation System library is a package developed by Kestrel Moon Studios that provides tools and functionality for animating and controlling 2D characters and creatures in games and other interactive applications.