im try to animate my guy but he's not moving he's just standing there here's my code
#include "DarkGDK.h"
void DarkGDK ( void )
{
int i = 1;
dbSyncOn ( );
dbSyncRate ( 60 );
dbRandomize ( dbTimer ( ) );
dbLoadObject ( "ColZ.x" , 1 );
dbRotateObject ( 1, -90, 90, 0 );
dbSetObjectSpeed ( 1 , 2);
dbPositionCamera ( 0, 0, -20 );
while ( LoopGDK ( ) )
{
dbLoopObject ( 1, 1, 350);
// move the camera forwards
if ( dbUpKey ( ) )
dbMoveCamera ( 1 );
// move the camera backwards
if ( dbDownKey ( ) )
dbMoveCamera ( -1 );
dbSync ( );
}
return;
}