Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
My question is fairly simple, most people here have played breakout. Is there a way I can use the mouse for the "paddle" but only allow it to move left or right, instead of all around the screen?
Develop games in your browser. Powerful, performant & highly capable.
just set the x position to mousex. Clamp the range with clamp().
Thankyou, nice to get an answer to a question finally. Im at work right now so can't try it out, but im eager to get back and plug it in. Let you know how it works for me.
It's going to work, trust me.
http://dl.dropbox.com/u/7658043/mouseclamp.cap
It works like a charm.Here's an example cap.