Input from controller launches two projectiles at once with a single button

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 bought Clickteam Fusion 2.5 last Saturday, and I am currently following some tutorials from almightyzentaco (on Youtube) about making a simple platformer (I've also added controller input using the Joystick 2 object for the Nintendo Switch Pro Controller via bluetooth, and the Xbox One Controller (Hadn't tried the PS4 controller yet) without bluetooth while I was following along), and when I got to the third part with projectiles and launching them, I've made one simple projectile for my player object to launch tested the keyboard input for the projectile launching and it works by firing a single shot, but when I press one button on one of my controllers (Y for Switch and X for Xbox), it always launched two of the same object at the same time.

    Does anyone have a solution to this issue when using controller inputs for projectile-based platformers? Any help will do.

  • You need to use a cooldown variable. So create either a counter or use an object's alterable value - I'll call it 'cooldown' for the example:

    - Fire button pressed
    - cooldown=0 ----> Launch projectile, set cooldown to 20

    -cooldown >0 -----> subtract 1 from cooldown

    You can change the fire sensitivity by changing the value of cooldown from 20 to higher for less sensitive, a lower value for more sensitive.

Participate now!

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