J
JON213
Guest
I would like to have this arm object to point in 2 directions. One end pointing to the mouse and the other the to the other half of the arm. Currently, I have the top half of the arm pointing to the bottom half and the bottom half pointing at the mouse. However, if I shoot at the ground recoil causes the top half to go haywire and look like the image below.
Here is what I use for the top half
And here is what I use for the bottom half
Here is what I use for the top half
Code:
image_angle=point_direction(x,y,obj_Arm.x,obj_Arm.y);
Code:
image_angle = point_direction(x,y,mouse_x,mouse_y)