I have a app which has a image sprite, and when the user clicks on the screen, the image sprite is supposed to move to the specific point that the user clicks on. I'm using the function asin(x_1-x_2/y_1-y_2), to find the correct angle, which will be the heading of the image sprite. But the function doesn't give correct angle. In short how do i find the angle of a line relative to the x or y-axis between two points.
Thanks for the help, i could've done this with the PointInDirection block, but i figured i could learn a bit more by doing it with trig functions, its not as efficient but as least i know how this stuff works now.