AlessioForlanteDev
Member
Hello everyone,
I imported this little engine that allows me to import Blender models into the game. However, after activated, my character will no longer look at the mouse, but at a specific point in the room.
The character looks around with: point_direction(x,y,mouse_x,mouse_y)
The weird thing is, mouse_x andy won't change by moving the mouse (or rather, the only change by only 1 when moving it across the screen).
However, if start moving the camera around then the numbers will change rapidly
The lines of code that make the mouse do this are:
gpu_set_cullmode( cull_counterclockwise );
projMat = matrix_build_projection_perspective_fov( 60, (global.default_camera_w)/global.default_camera_h, 32, 32000 );
camera_set_proj_mat( view_camera[0], projMat );
camera_set_update_script( view_camera[0],
camera_update_script );
and this is for every step
mLookat = matrix_build_lookat(obj_camera.x,obj_camera.y,1200,obj_camera.x,obj_camera.y-7,190,0,0,1);
camera_set_view_mat(view_camera[0], mLookat);
I hope some of you can help me fix this.
thanks
I imported this little engine that allows me to import Blender models into the game. However, after activated, my character will no longer look at the mouse, but at a specific point in the room.
The character looks around with: point_direction(x,y,mouse_x,mouse_y)
The weird thing is, mouse_x andy won't change by moving the mouse (or rather, the only change by only 1 when moving it across the screen).
However, if start moving the camera around then the numbers will change rapidly
The lines of code that make the mouse do this are:
gpu_set_cullmode( cull_counterclockwise );
projMat = matrix_build_projection_perspective_fov( 60, (global.default_camera_w)/global.default_camera_h, 32, 32000 );
camera_set_proj_mat( view_camera[0], projMat );
camera_set_update_script( view_camera[0],
camera_update_script );
and this is for every step
mLookat = matrix_build_lookat(obj_camera.x,obj_camera.y,1200,obj_camera.x,obj_camera.y-7,190,0,0,1);
camera_set_view_mat(view_camera[0], mLookat);
I hope some of you can help me fix this.
thanks