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
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