this is the code
#include "DarkGDK.h"
bool WalkingIsTrue = false;
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate(60);
dbMaximizeWindow();
dbHideMouse();
dbLoadObject("Colonel-X.X", 1 );
dbRotateObject(1,0,180,0);
dbScaleObject ( 1, 10.0f, 10.0f, 10.0f );
dbPositionObject(1,dbObjectPositionX(2)+575.0f,dbObjectPositionX(2)+2.0f,dbObjectPositionZ(2)+525.0f);
dbLoadObject("ent.X",3);
dbScaleObject(3,100.0f,100.0f,100.0f);
dbPositionObject(3,dbObjectPositionX(2)+600.0f,dbObjectPositionX(2)+1.0f,dbObjectPositionZ(2)+600.0f);
dbRotateObject(3,0,90,-90);
dbCloneObject(4,3);
dbPositionObject(3,dbObjectPositionX(2)+500.0f,dbObjectPositionX(2)+0.0f,dbObjectPositionZ(2)+590.0f);
dbCloneObject(5,3);
dbPositionObject(3,dbObjectPositionX(2)+590.0f,dbObjectPositionX(2)+0.0f,dbObjectPositionZ(2)+500.0f);
dbCloneObject(6,3);
dbPositionObject(3,dbObjectPositionX(2)+500.0f,dbObjectPositionX(2)+0.0f,dbObjectPositionZ(2)+500.0f);
dbLoadObject("plat.X",8);
dbPositionObject(8,dbObjectPositionX(2)+550.0f,dbObjectPositionX(2)+130.0f,dbObjectPositionZ(2)+570.0f);
dbScaleObject(8,100,150,150);
dbRotateObject(8,90,0,0);
dbLoadObject("top.X",10);
dbPositionObject(10,dbObjectPositionX(10)+550.0f,dbObjectPositionX(10)+250.0f,dbObjectPositionZ(10)+560.0f);
dbScaleObject(10,10000,10000,500);
dbRotateObject(10,90,0,0);
dbLoadImage("texture.jpg",1);
dbLoadImage("detail.jpg",2);
dbSetupTerrain();
dbMakeObjectTerrain(2);
dbSetTerrainHeightMap(2,"map.jpg");
dbSetTerrainScale(2,3.0f,0.6f,3.0f);
dbSetTerrainLight(2,1.0f,-0.25f,0.0f,1.0f,1.0f,0.78f,0.5f);
dbSetTerrainTexture(2,1,2);
dbBuildTerrain(2);
dbLoadObject("sky.X",7);
dbSetObjectLight(7,0);
dbSetObjectTexture(7,3,2);
dbScaleObject(7,50000,40000,40000);
dbRotateObject(7,90,0,0);
dbPositionObject(7,500,9,500);
dbLoadObject("ladder.X",11);
dbPositionObject(11,dbObjectPositionX(3)-20,dbObjectPositionY(2)+160,dbObjectPositionZ(3)+30);
dbRotateObject(11,90,90,0);
dbScaleObject(11,10,10,10);
dbSetObjectRadius(1,5.0f);
while ( LoopGDK ( ) )
{
dbPositionCamera(dbObjectPositionX(1)+1.5f,dbObjectPositionY(1)+7.0f,dbObjectPositionZ(1));
dbMoveCamera(-3.0f);
dbRotateCamera(dbObjectAngleX(1),dbObjectAngleY(1)-180,dbObjectAngleZ(1));
float fHeight = dbGetTerrainGroundHeight ( 2, dbObjectPositionX (1), dbObjectPositionZ (1) );
dbPositionObject( 1,dbObjectPositionX (1), fHeight + 1.0f, dbObjectPositionZ (1) );
if(dbObjectCollision(1,8))
{
dbPositionObject( 1,dbObjectPositionX(1),dbObjectPositionY(8)+20.0f, dbObjectPositionZ(1));
}
if(dbObjectCollision(1,11)==1)
{
dbMoveObjectUp(1,130.0f);
}
if(dbUpKey()==1)
{
dbMoveObject(1,-8.0f);
WalkingIsTrue = true;
}
else(WalkingIsTrue = false);
if(dbDownKey()==1)
{
WalkingIsTrue = true;
dbMoveObject(1,8.0f);
}
else(WalkingIsTrue = false);
if(WalkingIsTrue = true==1)
{
dbLoopObject(1,300,318);
}
else(WalkingIsTrue = false);
if(dbLeftKey()==1)
{
dbTurnObjectLeft(1,5);
}
if(dbRightKey()==1)
{
dbTurnObjectRight(1,5);
}
if(dbRightKey()==0) if(dbUpKey()==0) if(dbLeftKey()==0) if(dbDownKey()==0)if(dbShiftKey()==0)
{
dbLoopObject(1,210,232);
}
if(dbShiftKey()==1)
{
dbMoveObjectUp(1,1.0f);
}
if(dbObjectPositionY(1)==14.0f)
{
dbMoveObjectDown(1,1.0f);
}
if(dbObjectCollision(1,3)==1)
{
dbMoveObject(1,0.0f);
}
dbSync();
}
for ( int i = 1; i < 50; i++ )
dbDeleteObject ( i );
// return back to windows
return;
}
if you can't do it try try again and if you still cant do it ask for help