# finding the angle between two objects

### » Wed May 18, 2016 7:02 am

Old post I know, but was searching for atan2 and found this. Thanks!

.... and also for the - now retired - Construct Classic. Bit of a pointless 8 year old thread bump, I'd say.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
142
S
32
G
89
Posts: 5,811
Reputation: 62,216

### » Wed May 18, 2016 7:52 am

Old post I know, but was searching for atan2 and found this. Thanks!

.... and also for the - now retired - Construct Classic. Bit of a pointless 8 year old thread bump, I'd say.

Didn't realize it was on a Construct Classic forum—found directly from Google search.

Is there a better way to get an angle from x y coordinates? Used sin & cos to store values in variables in previous functions.

It helped me solve my problem and the search didn't turn up any other relevant results. If it can still help answer people's questions what does it matter how old it is?
B
46
S
27
G
11
Posts: 536
Reputation: 10,696

### » Wed May 18, 2016 1:35 pm

If it can still help answer people's questions what does it matter how old it is?

Exactly..............Hipparchus (father of trigonometry) would surely agree !
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

### » Thu May 19, 2016 6:16 am

oh man I got old.
B
79
S
13
G
8
Posts: 1,977
Reputation: 9,947

### » Thu May 19, 2016 12:11 pm

Haha kinda funny to see such an old thread. Yeah, so I got the angle expression wrong in 2008. I do apologise. Hopefully I got it right for the last eight years instead XD
Scirra Founder
B
413
S
244
G
92
Posts: 25,097
Reputation: 199,802

### » Tue Jul 05, 2016 9:41 pm

Ashley wrote:Haha kinda funny to see such an old thread. Yeah, so I got the angle expression wrong in 2008. I do apologise. Hopefully I got it right for the last eight years instead XD

It is still kind of wonked... fortunately the angle to position method on the TiledBackground seems to work much better.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,867

Previous