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
I'm wondering if there is any way to stop the mouse cursor from leaving the game screen?
I want it to stick to the gamescreen unless you press escape.
Develop games in your browser. Powerful, performant & highly capable.
The technology for this is not yet available in the browsers.
In a few updates the MouseLock API will be available and should allow you to just exactly do that.
For now, I don't think there's a way to do it.
o.o i think this can't happen , just make full screen mode
I don't like the idea to force the player to press a specified button just to get the mouse out of the game. Kids or amateur user will have big trouble, as many people still play the game but don't care about the button control.
This is not a game launcher, just a web browser after all.
Thank you for your replies. I'll just go with an other solution then. :)
hylists: What you say is completely true. Though I wanted this mainly for a personal project where I would be the only player ;)