I worked on the recoil system again today. As per usual, I couldn't get it to work properly. I decided to do a bit of a different post today, just to see how it goes. Here are the things I tried today, and how they failed miserably.
mouse_y is sadly read only, so you can't edit it to move the position of the mouse.
window_mouse_set(obj_Mouse.x,obj_Mouse.y+1) doesn't work well at all.
window_mouse_set(x,y) works exactly the same as the above.
window_mouse_set(-obj_Mouse.x,-obj_Mouse.y+1) teleports the mouse off the screen, and even off the window into the corner of the monitor.
point_direction(x,y,mouse_x,mouse_y+5); this doesn't work either. I can't figure it out.
I found a few complex recoil systems, that I might need to try to implement. Tomorrow, I will try one out, and if I cant get it to work I wont worry too much about it. Ill try to find something online tonight.
No comments:
Post a Comment