Thanks for the response.
I just tried that, but it didn't seem to affect the camera. An example of the movement is:
if( Down == 1 )
{
if( PosZ > -250.0f )
{
dbMoveCamera( 1, -2.0f );
dbMoveObject( 1, 2.0f );
dbSetObjectSpeed( 1, 30 );
dbLoopObject( 1, 237, 260 );
dbSetCameraToFollow(dbObjectPositionX(1), dbObjectPositionY(1), dbObjectPositionZ(1), dbObjectAngleY(1), 100, 100, 0, 0);
dbYRotateCamera(dbObjectAngleY(1));
}
}
else
{
if( Left == 1 )
{
if( PosX > -250.0f )
{
dbTurnObjectLeft( 1, -10.0f );
dbSetObjectSpeed( 1, 40 );
dbLoopObject( 1, 237, 260 );
dbSetCameraToFollow(dbObjectPositionX(1), dbObjectPositionY(1), dbObjectPositionZ(1), dbObjectAngleY(1), 100, 100, 0, 0);
dbYRotateCamera(dbObjectAngleY(1));
}
}
Have I maybe put the camera functions in the wrong place?