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
Our educational partners
Free education resources to use in the classroom
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
What i mean by the title is if i have an object that everytick gets its position to mouse.x and mouse.y. I know how to do that but how do i make object only move in a circle. So it has a fixed circle path that changes on the position of the mouse. In other words if there is a center point and object rotates around it but gets its position on the mouse position.
Develop games in your browser. Powerful, performant & highly capable.
like this one?
If you have a center location and a radius you can do this:
Sprite set X to centerX + radius*cos(angle(centerX,centerY,mouse.x,mouse.y))
Sprite set Y to centerY + radius*sin(angle(centerX,centerY,mouse.x,mouse.y))
Exactly like that i couldnt figure this out for the life of me