ID:161847
Mar 24 2008, 4:50 pm
|
|
So say I make an obj/A, and have already defined one(B), how would I set the angle of A, to directly face B, with say the Turn command. So it will be a number within 0 and 320, I cant get it right though. So could one of you help me make a small system to check the angle to face obj B?
|
Mar 24 2008, 5:30 pm
|
|
You use math :/
|
In response to Kaiochao
|
|
Wow you must deserve the reply of the year award for that. I know I need to use trigonometry but I cant get it to work.
|
In response to Bakasensei
|
|
The turn() proc?
|
This topic may help you: http://www.byond.com/developer/forum/?id=623827
Also, I think there are some resources with basic direction to angle type things in them, if you're not using pixel movement and all that jazz. |