How do I adjust the dead-zones for the d-pad?

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
3D Rendered, High Resolution elements to create an apocalytic scene or war zone
  • So I think this problem has something to do with dead-zones on the d-pad, but I don't know how to adjust that. My character can dash as well as attack with the same x button. However, sometimes the player will dash (while in the idle animation) if the attack (x) button is pressed immediately after releasing the d-pad. Even if I haven't been dashing (just running) he can dash (while idling) if x is pressed quickly enough.

    I'm not sure exactly that it's the dead-zone of the d-pad, but it seems like the player dashes because the d-pad hasn't fully returned to it's released position yet and that's allowing the dash? Could it be another problem? Any ideas?

    (Note: I do have a timer and boolean on the dash mechanic)

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't think the d-pad has an adjustable deadzone to begin with. Without seeing the project or being able to test I can just guess. My guesses in order of confidence:

    1. Your controller d-pad simply is a bit "sticky" and that's just how the hardware works. You could try a different controller or try keyboard controls for a test.

    2. Something in your setup of events isn't quite right

    3. Maybe it's just a matter of input latency, e.g. if you release the d-pad and press X in such quick succession before the release of the d-pad registers. This would be 1/60th of a second though at most I'd assume, so if the window for this missinput is bigger, it's probably the "sticky" d-pad.

  • Thanks so much for the reply, I actually fixed it by just increasing the deceleration to really high. So after releasing the d-pad the player stops so quickly it can't do the weird dash- idle thing. Thanks again!

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