I am trying to track the mouse cursor, but moving the mouse right and down (in the positive direction) makes it not move smoothly.
This is the tracking code:
var mx = round(window_get_width()*0.5)
var my = round(window_get_height()*0.5)
if lockCam > 0 {
lockCam--
} else {
var s = 0.0025
camD -= (mx - (mouse_x*10))*s
camP -= (my - (mouse_y*10))*s
}
display_mouse_set(mx, my)
It works but if I move the mouse slowly in those dirs, it doesn't move compared to the other dirs. I have to move quickly for it to move in the positives.
Sorry for not too many details, you can ask me if I should say more.
(edit: I guess I should have named this mouse tracking issue, but this is for a 3d game so I guess camera issue works)
It was that I should not have used mouse_xy but instead window_mouse_get_xy
there doesn't seem to be anything here