How do I easily convert MovingAngle to normal angle?

Get help using Construct 2

Post » Sat Jan 31, 2015 4:50 pm


I faced this issue and solved it in my way.
I want to share my solution for someone who needs it and ask, maybe simplest solution available.

Comparing 8Direction.MovingAngle to other angle I found that it differs, top part of it has negative angles.

To convert it to normal angle I've done following:
Code: Select all
(Player.8Direction.MovingAngle + 360) % 360

So, for example, -45º is converted to 315º, etc.
You do not have the required permissions to view the files attached to this post.
Posts: 15
Reputation: 457

Return to How do I....?

Who is online

Users browsing this forum: urkokan and 8 guests