How do I use the gamepad joysticks to control an object vel?

0 favourites
  • 9 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • I want to make a platform game with suport to gamepad.

    But, how can I control the character speed with joysticks?

    Something like... if I put the joystick just a little bit to the right, the char move slowly.

    Thanks.

  • Hi Zathan, did you read and understand the manual entry? https://www.scirra.com/manual/143/gamepad

    Let us know which part you're having trouble with.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Zathan, did you read and understand the manual entry? https://www.scirra.com/manual/143/gamepad

    Let us know which part you're having trouble with.

    Yup.. but what I want is not explained. I guess..

    As I said, "if I put the joystick just a little bit to the right, the char move slowly" to this direction.

    And, of course, the keyboard still works at the same time if the player prefers it.

  • Here's a quick sample.

  • Here's a quick sample.

    Thank you

  • Yup.. but what I want is not explained. I guess..

    No but you can see you have an axis with values from 0-100 depending on how far you move the joystick, so.. sounds like a relative speed value, with some basic maths.

  • I also searched the forums for the same thing you're asking about, but couldn't find anything. Here's the solution I came up with...I doubt it's the best way to do this, but if you only need a few speeds (like sneak, walk, and run), this should work.

    (edit) the last command was when I started on the move left commands, it's not finished. The first three blocks are for right analog movement.

  • I also searched the forums for the same thing you're asking about, but couldn't find anything. Here's the solution I came up with...I doubt it's the best way to do this, but if you only need a few speeds (like sneak, walk, and run), this should work.

    (edit) the last command was when I started on the move left commands, it's not finished. The first three blocks are for right analog movement.

    hehe thanks, I was thinking in do something like that

  • Thank you, this is helpful

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