Help with gamepad mouse aim?

0 favourites
  • 7 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hello everyone, I started implementing gamepad controls yesterday and the aiming is kicking my ass... I usually am not bad at figuring things out on my own, but right now I'm not sure where to go from here.

    Here is a recording of what I have so far:

    Subscribe to Construct videos now

    In a nut shell, I want the aim (center of the red circle) to stop at the extremity of the viewport minus the HUD on the right. See the screenshot below:

    Here the .c3p for my prototype:

    Note: Clicking on the link doesn't work right now. Just paste it in the URL bar.

    And I'm using this example project:

    Thank you for your assistance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • the links don't seem to work...

    you might want to use clamp to limit right hand position.

  • Hi Allan, thank you for your reply. I don't know why the links don't work? They work fine when I paste them in the URL bar.

    Indeed, pretty sure I will have to use clamp to stop it from going under the HUD. But, I need to resolve my main issue first which is moving the cursor all over the viewport and making sure it follows the player.

  • I'm still working on aiming with the gamepad, but I got this to work at least (with the mouse).

    Subscribe to Construct videos now

    I'm trying to do the same with the gamepad. Hopefully the video provides a better idea of what type of aiming system I'm going for.

  • looks like a mix of Contra and Rush'n Attack !

  • looks like a mix of Contra and Rush'n Attack !

    Haha yes sir! Actually, it's a hybrid of the original Metal Gear games and Contra with some others thrown in the mix Rush'n Attack being one of them. All the assets will be modified. I'm working on the gameplay and the overall mechanics of the game first. Many of the assets are already originals.

    Here is more gameplay.

    Subscribe to Construct videos now
    Subscribe to Construct videos now
    Subscribe to Construct videos now
  • I made a breakthrough. It's still pretty broken, but I should be able to figure things out.

    Subscribe to Construct videos now
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)