G
greebdork
Guest
So, it seems i'm dense as an oak, i can't figure out how to make an object always stay on the line between other object and a mouse position, and at constant distance from said object.
Let's say i have a obj_player with x and y, mouse_x and mouse_y, and i want an obj_reticule stay at the 10 pixels from obj_player and on the line between mouse position and player position, so it would orbit the player depending on the relative position of the mouse to the player. I hope it makes sense.
Let's say i have a obj_player with x and y, mouse_x and mouse_y, and i want an obj_reticule stay at the 10 pixels from obj_player and on the line between mouse position and player position, so it would orbit the player depending on the relative position of the mouse to the player. I hope it makes sense.