Gamepad equivalent of set cursor to mouse position

Get help using Construct 2

Post » Sun Sep 07, 2014 11:33 pm

I'm looking to replicate the action "Set position to Mouse.X(0), Mouse.Y(0)" with the xbox 360 gamepad right thumbstick

So far I have "Set Position to ((Gamepad.Axis(0,2)/100 * WindowWidth/2) + WindowWidth/2 , (Gamepad.Axis(0,3)/100 * WindowHeight/2) + WindowHeight/2) which works with just one layer but if I have multiple layers in my layout it fails.

Is there any way I can modify this to accommodate multiple layers and are there any improvements I can make to the action to smooth the thumbstick movement? It's running every tick but is still a little jittery and the cursor doesn't quite reach to the four corners of the screen.
B
12
S
2
G
1
Posts: 26
Reputation: 892

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests