How do I get the mouse movement?

Get help using Construct 2

Post » Sun Mar 26, 2017 7:49 am

Hi ! I aim to detect the mouse movement for a FPS game : left and right.

So, yes of course I can use the comparison between Mouse.X and OldMouse.X to know if the cursor has moved to the left or the right . But it's not working any more one the cursor has reached the border of screen (Mouse.X stays at 0) so I can't detect that the mouse is still moving to the left.

Does anyone think of a way to achieve that ?

Thanks :D
B
8
S
4
Posts: 131
Reputation: 1,205

Post » Sun Mar 26, 2017 7:57 am

There's the mouse lock plugin that lets you get that info and fixes the cursor to the middle of the screen. Maybe you could try that?
B
94
S
33
G
113
Posts: 5,357
Reputation: 73,275


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests