How do I disable the Mouse?

Get help using Construct 2

Post » Fri Jun 30, 2017 9:31 pm

I am attempting to make a game that utilizes the the mouse to look around and one issue I have come across is the way the mouse can move offscreen,

I downloaded the MouseLock plugin seen here: plugin-mouse-lock-v0-5-updated_t102112

The problem with that is I get this error when I activate the plugin.

Image

Is there any other way to get the mouse to lock onto the screen?
B
18
S
4
G
4
Posts: 61
Reputation: 3,150

Post » Sat Jul 01, 2017 12:26 am

Is this for a browser game or desktop?
If it's for a browser, it's probably best to allow the user to click off the game (this is a convention for browser objects), so making the cursor invisible is a better idea.
For desktop, fullscreen should make the mouse bound to the window.

Is there any reason you need the mouse to not be able to move at all?
ImageImage

Take a look at my itch.io games
B
45
S
14
G
3
Posts: 167
Reputation: 5,204


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests