Is there any way to "block" the mouse?

Get help using Construct 2

Post » Thu Oct 23, 2014 12:43 pm

Hi Guys, I'm wondering if is there any possibility of blocking the mouse inside the window?
Currently I'm working on a topview crosshair based shooter, and I found a problem: If I move the mouse outside the screen, it stops moving, and when I return it back in, the crosshair makes an ugly insta-movement to the mouse position. I guess it may be impossible (Because as far as I know, mouse has more priority than the browser (chrome, in this case))

Do you know if it does exist any way to do this?

Greetings from Thanksalotland.
B
4
Posts: 9
Reputation: 218

Post » Thu Oct 23, 2014 6:42 pm

Here's a plugin that may help:
plugin-mouse-lock-v0-1_t102112
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

Post » Thu Oct 23, 2014 8:50 pm

@R0J0HOUND is there no way other than this plugin? I would like to fix this same issue but don't necessarily want to use a third party plugin
B
13
S
5
G
1
Posts: 119
Reputation: 2,292

Post » Thu Oct 23, 2014 9:35 pm

No other way other than maybe using the browser object to do the same thing as that plugin. But why not use the plugin to abstract away all the tediousness, not to mention there may be aspects of it that only can be done from the plugin.
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

Post » Thu Oct 23, 2014 10:47 pm

Wow! Much thanks, that exactly what I was looking for!
B
4
Posts: 9
Reputation: 218


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 37 guests