Hi!
Bug 1: I'm trying to remove a head of an enemy if I shoot at it. To do this I'm using the dbRemoveLimb ( int Object, int Limb ) command.
Here is an example that works:
while ( LoopGDK ( ) )
{
dbRemoveLimb ( 100, 3 );
dbSync ( );
}
And here is an example the doesn't work (I am pressing the space key when I run it):
while ( LoopGDK ( ) )
{
if ( dbSpaceKey ( ) )
dbRemoveLimb ( 100, 3 );
dbSync ( );
}
So what's going on there?
Bug 2: My model I'm loading that's being used in the previous bug doesn't have a texture. So most times when I load it, it is black, but sometimes it's red. I'm pretty positive that it changes randomly and if it doesn't then it's changing for stupid reasons like adding an if statement some where that has nothing to do with the model.
Bug 3: Sometimes when the head of the model does get removed the vertices are all over the place. It's almost like the vertices in the head are being moved in all random directions when ever I do dbRemoveLimb.
Bug 4: Occasionally when I remove a limb I get an unhandled exception error.
So does anyone have ideas on why this is happening?
EDIT: dbOffsetLimb works but not dbHideLimb or dbRemoveLimb
EDIT2: I found the source of the bugs 1, maybe 2, and maybe 4. The problem is, is that dbRemoveLimb does not do anything after dbSync ( ) or dbFastSync ( ) has been called.
EDIT3: When dbRemoveLimb is called after a dbSync ( ) or dbFastSync ( ) the limb is being removed but not being update on the screen. I tested this with:
if ( dbSpaceKey ( ) )
{
dbRemoveLimb ( 100, 3 );
if ( dbLimbExist ( 100, 3 ) )
exit ( 1 );
}
(It did not exit meaning the limb WAS removed, but it was still there on the screen)
Games are like life, they should never stand still.