Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
A function I didn't realize was missing until I found out how amazingly awesome it is is atan2(). Any chance it could be added for the next build?
Develop games in your browser. Powerful, performant & highly capable.
I wrote atan2 as a formula in an event, only to later realize there is an angle compare expression that does the same job I wanted done.
Is that what you're trying to do? measure of the arc between two angles?
The angle() expression which measures the angle between two points uses atan2. I'm not aware of any other uses for atan2.
If you pass 0 as one of the two positions the result is exactly equal to atan2, ie. angle(0, 0, x,y) is equal to atan2(y, x).
I didn't even think of doing that with the angle() expression. I'm using the function to get the angular speed of an object based on it's separate X and Y speeds.