Although I am new to DGDK, I'll see if I can help you
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
SetCurrentDirectory ( "media" );
dbLoadObject ( "universe.dbo", 1 );
dbSetObjectLight ( 1, 0 );
dbLoadObject ( "skybox2.x", 2 );
dbSetObjectLight ( 2, 0 );
dbSetObjectTexture ( 2, 3, 2 );
dbScaleObject ( 2, 5000, 5000, 5000 );
//This loads the player object
dbLoadObject ("Colonel-x.x",3);
//This loops the object's animation using frames 210-220
dbLoopObject (3,210,220);
//This sets the speed of the object's animation
dbSetObjectSpeed (3, 40);
dbScaleObject (3,20,20,20);
//positions the object , 500 is X axis, 1.5 is Y axis and 300 is Z axiz
dbPositionObject(3,500,1.5,300);
while ( LoopGDK ( ) )
{
//This positions the camera wherever the object is +15 on the Y axis and -25 on the X axis
dbPositionCamera (dbObjectPositionX(3),dbObjectPositionY(3)+15,dbObjectPositionZ(3)-25);
//sets how far the camera can see
dbSetCameraRange (1.0f, 30000.0f);
//Allows you to move the object with the arrow keys
if (dbUpKey () )
dbMoveObject (3,-1);
if (dbLeftKey() )
dbTurnObjectLeft(3,3);
if (dbRightKey() )
dbTurnObjectRight(3,3);
if (dbDownKey() )
dbMoveObject(3,.5);
dbSync ( );
}
return;
}
Hope it helps in some way
HEYYYY YYYOOUUUUU GUUUYYYYSSSS