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
There is a sprite moving on mouse click.
Is there any way to find the angle between two coordinates (vector) of the sprite and the mouse click coordinates?
You could use the angle() expression on both vectors to get their angles, then use the anglediff() expression to find the angle between them. Another way would be to utilize a vector dot product to find the angle.
Develop games in your browser. Powerful, performant & highly capable.
Or would it be sprite.angle-180 to get the vector coming from the third point?