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
So I made the platform that the ball bounces off, follow the mouse. But it goes through the wall when I move it all the way to the left or right. How can I make the platform stop when it hits the solid wall?
Fyi: the platform is a solid too.
Develop games in your browser. Powerful, performant & highly capable.
if you are using an event like:
Every tick: set platform.X to mouse.X
Every tick: set platform.X to clamp(mouse.X, lowestX, highestX), where lowestX is the lowest value of the X position of the platform you want, and highestX the highest