Gamepad equivalent of set cursor to mouse position

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)