How to avoid sticky corners when moving around using joystick?

I’m working on a 3rd person shooter that is going to be controlled using a PS3 or Xbox360 controller.
I want to make the player able to move and aim using the two analog thumbsticks. But I have a problem… When you move the right analog stick around to aim, the 4 corners is kinda sticky. Not the controller itself, that is fine, but the direction I’m aiming at.
And when I’m not moving the analog stick to the edge it also works fine, but as soon as the stick goes all around in the edge it hangs a bit in the corners.

Do any of you have an idea how to make this right?

Thank you in advance.
Kasper

When you say it's not the controller... have you tried calibrating the right stick in Windows? You may need to Normalise the x and y axes of the stick in your script.

1 Answer

1

I’m feeling dumb…
The answer to my problem was the sensitivity. It had to be 1 instead of 3 :slight_smile:

Indeed! Fractions of a second could lead to several frames of difference.

Well, guys, thanks for your help, and I don't mean to be rude - but have you tested this on the project I linked? Cause, even when I put the += you Bunny83 suggested, they don't "tick" at the same time.

timeText is updated with system time. If you want them to tick the same, displayText needs to update with a trigger from that. The text 'tickrate' is the same. They are simply receiving new information at different times.

Basically its just testing for when the value of seconds from the system clock changes. When it does, both the texts are updated at the same time :) Compare it to your code. You will see I giggled some stuff around and put the + in timer.

Excellent, thank you very much for your help!, will upvote once I get over the freakish 15 rep treshhold. It's kind of weird to come here from StackOverflow (where I got quite a profile :)) and start "all over again"