animated .X Files help
Posted: Fri Oct 03, 2008 5:08 pm
hello everyone
Currently working on a game and we are using the .X files, we are currently trying to use the normal animation
setframeloop and setanimationspeed but to no avail,
can someone please help us here
Currently working on a game and we are using the .X files, we are currently trying to use the normal animation
setframeloop and setanimationspeed but to no avail,
can someone please help us here
Code: Select all
this->mesh = pEngine->GetSmgr()->getMesh("./Resources/Meshes/SpaceBee.X");
this->mesh->setMaterialFlag(video::EMF_LIGHTING, false);
this->node = pEngine->GetSmgr()->addAnimatedMeshSceneNode(mesh);
if (node)
{
node->setMaterialTexture( 0, pEngine->GetDevice()->getVideoDriver()->getTexture("./Resources/Textures/SpaceBee.tga") );
node->setFrameLoop(0,30);
node->setAnimationSpeed(3);
//Create a random position for the bee ships to fly over the player.
//Will be within a boundry of the tunnel
node->setPosition(vector3df(0, 0, 0));
}