ok basically with the help of the manual/help file i made this:
while (key_t == 1) {wait (-1);} // isometric view
{
camera.x = player.x - 200 * cos(player.pan);
camera.y = player.y - 200 * sin(player.pan);
camera.z = player.z + 100; // above the player
my.pan -= cam_pan_speed * (mouse_force.x) * time;
camera.tilt += cam_tilt_speed * (mouse_force.y) * time;
camera.tilt = clamp(camera.tilt, -56, 70);
}
now for request reasons i cant show you another part of the code. but it is code for the first person view. and it is above this part. that part and this part are in one whole function.
as you can see i took your advice on getting the mouse to move in 3rd person. now my trouble is, some of your code is a bit.. advanced for me lol. i just dont get one thing about it, does this mean i should completely overwrite the function i have, save the camera settings from it and put them in your "function camera update"?
so essentially it would look like this?
function camera_Update()
{
if(camera_ViewMode == 0) // 1st Person
{
[CENSORED FIRST PERSON CAMERA CODE]
}
else // 3rd Person
{
camera.x = player.x - 200 * cos(player.pan);
camera.y = player.y - 200 * sin(player.pan);
camera.z = player.z + 100; // above the player
my.pan -= cam_pan_speed * (mouse_force.x) * time;
camera.tilt += cam_tilt_speed * (mouse_force.y) * time;
camera.tilt = clamp(camera.tilt, -56, 70);
}
}
amidoinitrite?
i hope you understand my ramblings lol.