finding the angle between two objects

For questions about using Classic.

Post » Wed May 18, 2016 7:02 am

@badmoodtaylor
badmoodtaylor wrote:
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
129
S
29
G
78
Posts: 5,197
Reputation: 54,801

Post » Wed May 18, 2016 7:52 am

zenox98 wrote:@badmoodtaylor
badmoodtaylor wrote:
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?
ImageImageImage
B
38
S
21
G
11
Posts: 478
Reputation: 9,765

Post » 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

Post » Thu May 19, 2016 6:16 am

oh man I got old.
B
73
S
13
G
8
Posts: 1,972
Reputation: 9,791

Post » 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
383
S
225
G
86
Posts: 24,139
Reputation: 190,611

Post » 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
Company name changed to avoid Facebook-type shenanigans

"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
22
S
6
G
1
Posts: 1,365
Reputation: 4,724

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest