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
120
S
28
G
68
Posts: 4,850
Reputation: 48,301

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
32
S
19
G
11
Posts: 458
Reputation: 9,370

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
36
S
12
G
29
Posts: 328
Reputation: 16,458

Post » Thu May 19, 2016 6:16 am

oh man I got old.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

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
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

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
18
S
5
G
1
Posts: 1,144
Reputation: 4,066

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests