Stewart Evans
Member
So I've been looking into how to fix this issue since it seems to be a common one and the only solutions that I've consistently seen are related to the end step event of the object being drawn. The buttons snap into place once I stop moving the camera, but it looks very jarring while in motion. I'm not sure what I'm missing, but any help would be appreciated.
Button end step event
Camera step event in case this is the problem
As a note, I am pretty much brand new to working with cameras other than the tutorials I've watched and messing around I've done, so my understanding is fairly limited.
Button end step event
Code:
view_xview = camera_get_view_x(view_camera[0]);
view_yview = camera_get_view_y(view_camera[0]);
x = view_xview + screenX;
y = view_yview + screenY;
Code:
x = clamp(x, 0 + (width / 2), room_width - (width / 2));
y = clamp(y, 0 + (height / 2), room_height - (height /2));
var vm = matrix_build_lookat(x, y, -10, x, y, 0, 0, 1, 0);
camera_set_view_mat(camera, vm);
Last edited: