[Plugin] Mouse Lock (v0.5)(UPDATED)

Post your completed addons to share with the community

Post » Tue Dec 29, 2015 4:21 am

@tecbug

thx for notifying, I'll take a look at it when I can and see if I can fix it
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Mon Feb 01, 2016 9:50 pm

Hey @TiAm, really nice plugin there! :)

I found some bugs too. Whenever you hold any mouse or keyboard buttons, mouselockx/y and rawx/y will not follow mouse movement very accurately, even if the mouse isn't locked.

I also had issues on a PC running Windows 10: it returned really low values for those, even if no buttons were pressed.

Please tell me if you need any more specifications!

Thanks!
Winstratos on:

Twitter
Facebook
Tumblr
B
12
S
5
G
1
Posts: 23
Reputation: 1,602

Post » Fri Feb 26, 2016 7:25 pm

@tecbug @TiAm
I had that same error message with NW.js. At line 440 in runtime.js I just commented out everything like this:
Code: Select all
/*document.pointerLockElement =   document.pointerLockElement       ||
                                  commenting out the above line makes this work as intended. Don't know why.
                                  document["mozPointerLockElement"]   ||
                                  document["webkitPointerLockElement"];*/

This also fixed the problem I had with "Mouse is currently locked" condition.

A couple of lines above in the runtime.js file it actually says "//the below isn't working. Commented out for now."
Was it supposed to be commented out and was just forgotten? :)

Haven't noticed any issues so far after doing that.
B
94
S
35
G
8
Posts: 32
Reputation: 9,350

Post » Sun Feb 28, 2016 6:16 pm

Real useful. Good work !
B
7
S
3
G
1
Posts: 110
Reputation: 1,024

Post » Mon Feb 29, 2016 10:23 am

@TiAm Are you planning to update this great plugin?
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Sun Jul 17, 2016 2:48 am

Thank♥
B
40
S
8
G
1
Posts: 14
Reputation: 4,853

Post » Wed Aug 31, 2016 8:37 pm

@TiAM with this plugin is possible lock the mouse to move only in a given angle? How can i achieve that?
B
27
S
10
G
3
Posts: 612
Reputation: 4,676

Post » Fri Dec 09, 2016 7:59 am

@McKack You get the MouseLock working in NW.JS? i have the same problem but i not understand very well your solution, can you upload your MouseLock plugin please?
B
27
S
10
G
3
Posts: 612
Reputation: 4,676

Post » Fri Jan 27, 2017 4:28 pm

@matriax

I've uploaded it to my dropbox
I'm a Magician, not a Developer.
B
24
S
8
G
25
Posts: 109
Reputation: 14,382

Post » Mon Mar 13, 2017 5:26 pm

the dropbox link for the plugin is broken and i need to download it for a construct 2 game im creating for school
B
3
Posts: 1
Reputation: 177

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests