okay i am new to DarkGDK and am hoping some of you out there can help me. following are the problems facing me when i tried to make a test fps game.
- Crosshair! i tried to make the crosshair come out by using the codes dbLoadImage and dbPasteImage! it works if there are no other objects on the black screen but when i load or make another object, for example dbMakeObjectCube, the crosshair is no where to be seen.
- how do you show FPS? i tried the command before void DarkGDK ( void FPS) but it doesnt work
- how do i load an object (for example the sample ColonelX.X) and control it using whatever keys i designate?
any help is welcome! thanks in advance.
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage ("crosshair.png" , 12 );
dbLoadObject ( "Atomiser.x", 1);
dbLoadObject ( "Bezerker.x", 2);
dbPasteImage ( 12, 240, 240)
dbAutomaticCameraCollision(0, 2, 1);
dbMakeObjectCube(3, 10);
dbPositionObject(3, 50, 10, 100);
dbSetObjectCollisionToBoxes ( 3 );
dbSetObjectCollisionToPolygons ( 2 );
dbPositionObject (2, 100, 0, 100);
dbRotateObject (2, -90, 180, 0);
dbPositionObject (1, 10, -15, 20);
dbRotateObject (1, -90, 0, 0);
dbLockObjectOn (1);
Yseeg!