Stop cursor from leaving screen

Get help using Construct 2

Post » Wed Jun 27, 2012 3:07 pm

Hi,
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.
B
8
S
3
G
2
Posts: 45
Reputation: 2,186

Post » Wed Jun 27, 2012 3:39 pm

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.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Wed Jun 27, 2012 3:41 pm

o.o i think this can't happen , just make full screen mode
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Wed Jun 27, 2012 4:16 pm

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.hylists2012-06-27 16:17:28
B
19
S
5
Posts: 51
Reputation: 1,883

Post » Wed Jun 27, 2012 6:26 pm

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 ;)jimutt2012-06-27 18:26:50
B
8
S
3
G
2
Posts: 45
Reputation: 2,186


Return to How do I....?

Who is online

Users browsing this forum: WhosWho and 20 guests