Thanks for the advice Superku, but that didn't make any difference either. I think the function and the "if then" statement just didn't sit to well together (at least for camera functions). I broke out each camera as it's own function and then call them from another function...and the shaky/jittery camera has stopped.

Here's what I wound up doing:

Code:
function camera_1stperson()
{
	while(1)
	{
	   camera.x = my.x + 11 * cos(my.pan);
	   camera.y = my.y + 11 * sin(my.pan);
	   camera.z = my.z + 25;
	   camera.pan = my.pan;
	   camera.tilt = 0;
	   camera.roll = 0;
	   wait(1);
    }
}

function camera_3rdperson()
{
	while(1)
	{
	   camera.x = my.x - 150 * cos(my.pan);
	   camera.y = my.y - 150 * sin(my.pan);
	   camera.z = my.z + 50;
	   camera.pan = my.pan;
	   camera.tilt = -13;
	   camera.roll = 0;
	   wait(1);
        }
}
function camera_3rdperson2()
{
	while(1)
	{
	   camera.x = my.x - 250 * cos(my.pan);
	   camera.y = my.y - 250 * sin(my.pan);
	   camera.z = my.z + 200;
	   camera.pan = my.pan;
	   camera.tilt = -25;
	   camera.roll = 0;
	   wait(1);
        }
}

function select_cameras()
{
	
	while(1)
	{
		if(key_7)
		{camera_1stperson();}
		if(key_8)
		{camera_3rdperson();}
		if(key_9)
		{camera_3rdperson2();}
		wait(1);
	}
}



Last edited by emo10001; 07/07/11 04:00.

"To one who has faith, no explanation is necessary. To one without faith, no explanation is possible." - St. Thomas Aquinas