» Tue Jun 19, 2012 6:29 pm
Could u fake a polr coordinate system that would solve both these issues like this'ish:
This is ofcourse incomplete:
You would getangle player. A series of ifs and elseifs would sort out how far your angle is from a 90, 180, 270, or 360 and then use the appropriate sin/cos to reference the position of an object if you wanted to move an object a certain distance from the player. That distance would be the hypotenuse.
You would also need a series of ifs and elseifs to sort out negative vs positive coords.. you would absolute value these negative coorrds for the trig functions. Then you would have to keep track of what's negative so it could switch them back after your position is figured out.
Brake is over maybe ill add more to this tonight.