display_w=global.resolution[global.res,0]//display_get_width(); display_h=global.resolution[global.res,1]//display_get_height(); change_x=(display_mouse_get_x()-display_w/2)/16; change_y=(display_mouse_get_y()-display_h/2)/12; direction-=change_x zdirection+=change_y display_mouse_set(display_w/2,display_h/2);
The global res array is just something I have for changing resolution in game.
But, the viewing angles are limited by the method used. the camera will move up and down, smoothly as it reaches its top angle and bottom angle.
I need to look straight up and down though, and it only goes about 45 degrees each way, not 90.











