Problem with Xbox Controller

This forum is currently in read-only mode.
  • Hello guys!

    I'm trying to make a platformer game with both keyboard and xbox controller controls, but I'm having a little problem with the controller and with the simplest thing of all - jumping.

    First of all I disabled deafult jump controls in application properties so everything is controlled by events, then I set jumping two ways. First in MouseKeyboard, on key pressed condition, which works fine - when certain button is pressed sprite is jumping at a given height and when I press and hold the button the sprite will jump only once. When it comes to xbox controller there is a problem because it can only have one condition - on control is down, which makes that the sprite is flying up constantly when certain button is pressed and hold.

    So there is my question - is there any way to make xbox controller recognize only single button press even if the button is hold, like on key pressed condition?

    Here is screenshot of my events because I can't post link to .cap file yet

    <img src="http://i50.tinypic.com/23lmlwg.jpg" border="0" />

    Thanks in advance :)

  • Add a Trigger Once While True condition from the System object underneath "Button A" is down, should act the same as "is pressed" would for a keyboard control <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That worked :)

    Thanks a lot jayjay :)

  • Heck, I didn't even know you could use 'OR'. I thought I read that it was broken... but now that I think of it that was years ago and I guess I never looked into it again.

    Nice to know that it can be used. Now I don't have to keep grouping all of my controls. It was creating some really long event sheets.

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