1
General / Setting Sprite on a circle around the player in an angle to mouseposition
« on: September 29, 2012, 04:51:57 pm »
Hey there!
Got a pretty much mathematical problem here I couldn't figure out after hours of trying...maybe some1 can help me.
Let me explain...
![](http://imageshack.us/photo/my-images/231/explain.png/)
So I want to set the object's position to a coord on the circle.
The circle's coord should be calculated using the angle between the player and the mouse-position.
Hope you know what I'm talking about.
Greets,
Finn
Got a pretty much mathematical problem here I couldn't figure out after hours of trying...maybe some1 can help me.
Let me explain...
![](http://imageshack.us/photo/my-images/231/explain.png/)
So I want to set the object's position to a coord on the circle.
The circle's coord should be calculated using the angle between the player and the mouse-position.
Hope you know what I'm talking about.
Greets,
Finn