I'm having an issue with my gamepad, please help

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I'm making a shooter game and right now I am trying to make it gamepad accessible. For this game I assigned the "A" button on the gamepad to fire the shots. The problem is, it keeps on repeating and is firing rapidly. I just need it to fire once. Strange thing is, when I was assigning the keyboard controls this wasn't an issue. If I wanted the ship to fire once, I'll just select {Upon Pressing "X"}, and if I wanted to fire rapidly, I select {Repeat while "X" is pressed}. The gamepad for some reason thinks the latter was assigned to it. Here's an illustration of what I'm talking about.

    Please login to see this attachment.

    Please help, any suggestions would be appreciated.

    Edited once, last by Smirkytrick (September 22, 2017 at 1:30 AM).

  • Hi Smirkytrick,

    As of the moment, I do not know what extension (or method) you are using to tell the computer how to accept input from the gamepad, that is import information. For example, are you using the Joystick object 2 extension, or something else? Also, when you say "gamepad," are you referring to a USB game controller?

    One thing I might try is the following: On your event that states:

    -A Button is pressed
    +Launch "bullet" from "player"

    I would insert the "Run this event once when loops" command. This will ensure that it can only happen once per button press.

    Your code would then be:

    -A Button is pressed
    -Run this event once when loops
    +Launch "bullet" from "player"

    Let me know, and best of luck!

    TheSordaKnown

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!