I would like to repost the code I have so far, for my camera controls, since the issue is still there i've just moved onto other things that neec accomplished. =]
Main Camera Function:
void Camera_Control()
{
int Max = dbObjectAngleX( 4 ) + dbMouseMoveY() / 3;
dbPositionCamera ( dbObjectPositionX(4), dbObjectPositionY(4), dbObjectPositionZ(4) );
dbPositionObject ( 4, dbObjectPositionX(3), dbObjectPositionY(3) + 2, dbObjectPositionZ(3) );
dbMoveCamera ( -10 );
dbRotateCamera ( dbObjectAngleX(4), dbObjectAngleY(3) + 180, dbObjectAngleZ(4) );
if ( dbMouseClick() == 2 )
{
dbHideMouse ( );
dbXRotateObject ( 4, Max );
dbRotateObject ( 3, 0, dbObjectAngleY(3) + dbMouseMoveX() / 3, dbObjectAngleZ(3) );
}
dbShowMouse();
}
Function that actually sets up the object 3 and 4:
void Setup_Player()
{
dbLoadObject ( "H-GI-Static.x", 3 );
dbPositionObject ( 3, 260, 260, 200 );
dbMakeObjectSphere ( 4, 1 );
dbScaleObject ( 4, 10, 10, 10 );
dbPositionCamera ( dbObjectPositionX(4), dbObjectPositionY(4), dbObjectPositionZ(4) );
dbPositionObject ( 4, dbObjectPositionX(3), dbObjectPositionY(3) + 2, dbObjectPositionZ(3) );
dbMoveCamera ( -10 );
}
Oh and setup_player is being called first and only once. Where as camera_control is called every frame.