dbMoveObject ( "Colonel-X.X", 1);
Check your docs on the usage of functions, I think you have some things mixed up a little, here is the entry for dbMoveObject from the DarkGDK Documentation :
Quote: "dbMoveObject
This command will move the specified 3D object in 3D space. The command uses the current direction of the object and moves it using the specified step value.
Syntax
void dbMoveObject ( int iObject, float fSpeed )
"
You are calling that command incorrectly. The first parameter should be an integer that represents your object ID, in this case you loaded "Colonel.X" as object number 1. The second parameter of the function should be a floating-point number representing the speed that you want the object to move at. It basically says how far the object will move each time that command is called, larger numbers mean is moves quicker.
So, with the above in mind, the correct way to call that comand in your program would be :
// Move Object Number 1 at the speed of 1.00 each time the command is called
dbMoveObject( 1, 1.00);
ALSO :
is being called incorrectly, again check the docs, here is the listing for that command :
Quote: "dbUpKey
This command will return a value of one if the up arrow key is being pressed, otherwise zero is returned.
Syntax
int dbUpKey ( void )
"
Notice that the syntax is pre-fixed with "int" rather than "void" with this command. This means that it will return a value when it is called, of the type integer. You almost had it right when calling it, your syntax should be :
OR
both of the above will result in the same thing, it will enter the if loop, if the UP arrow key has been pressed when that command is called.
Hope this helps you
If it ain't broke.... DONT FIX IT !!!