I have noticed many questions repeated on the form so here is a guide from a semi noob to a uber noob! (No offence) Here is how you build a terrain the correct way!
dbLoadObject("your image",1);
dbLoadObject("your image",2);
dbSetupTerrain (); dbMakeObjectTerrain(1); dbSetTerrainHeightMap (1, "your map" );
dbSetTerrainScale (1, 3.0f, 0.6f, 3.0f);
dbSetTerrainLight (1, 1.0f, -0.50f, 0.0f, 1.0f, 1.0f, 0.78f, 0.5f);
dbSetTerrainTexture (1,1,2);
dbBuildTerrain( 1 );
dbLoadObject ("your skybox",2);
dbSetObjectLight(2,0);
That is a Terrain now i bet many of you want to know how to load a image but you can't!!!!
Here you go save your folder of your game on your desktop Important build it and debug it first!!! Put image before the debug and after the first folder! now heres another thing heres code to correctly place a image to show watch!
dbLoadImage ("the image,1<-- do not forget the Identifier! ");
dbSprite ( 1,0,0,1 ); //<--- important put that there!
Okay you should get your image!!!
Okay next how do i move camera using a joystick or a keyboard!!!
heres for joystick
if ( dbJoystickUp () )
dbMoveCamera ( 10 );
if ( dbJoystickDown () )
dbMoveCamera ( -10 ) ;
if ( dbJoystickLeft () )
dbRollObjectLeft (-5);
if ( dbJoystickRight () )
dbRollObjectRight (-5);
for a keyboard
if ( dbUpKey () )
dbMoveCamera ( 10 );
if ( dbDownKey () )
dbMoveCamera ( -10 );
if ( dbLeftKey () )
dbRollObjectLeft ( 5 );
if ( dbRightKey () )
dbRollObjectRight ( 5 );
Music
dbLoadMusic ( "the music", 1 ); // <-- the number which it is!
dbPlayMusic ( 1 );
dbLoopMusic ( 1 );
dbSetMusicVolume ( 1, 50 );
Thats basically the lot you need to know thanks TempiceK i could not have done anything without him credits to him tell me if you need more!
Real men don't need sigs