M
Mew_TheCat
Guest
I have a slight problem with my crosshair jittering when i move the camera.
obj_mouse:
obj_mouse:
step:
obj_camera:x = mouse_x;
y = mouse_y;
y = mouse_y;
step:
I am fairly sure it has something to do with the player moving and the camera not being able to work with the player movement and the mouse position, but I am not sure how to fix it.viewx = ((obj_player_ship.x-view_wview/2)*(viewdist-1)+(mouse_x-view_wview/2))/viewdist;
viewy = ((obj_player_ship.y-view_hview/2)*(viewdist-1)+(mouse_y-view_hview/2))/viewdist;
viewx2 = viewx2-(viewx2-viewx)*0.4;
viewy2 = viewy2-(viewy2-viewy)*0.4;
view_xview = viewx2;
view_yview = viewy2;
viewy = ((obj_player_ship.y-view_hview/2)*(viewdist-1)+(mouse_y-view_hview/2))/viewdist;
viewx2 = viewx2-(viewx2-viewx)*0.4;
viewy2 = viewy2-(viewy2-viewy)*0.4;
view_xview = viewx2;
view_yview = viewy2;