# Crosshair sensitivity controlled by multitouch joystick

Hello guys

I’m trying to make a shooter game where one of the joystick controls is responsible for controlling the crosshairs and my question is, is it possible to improve the sensitivity of the controls somehow? To make the crosshair move more smoothly or adequately to the force of moving the joystick?

If you’re talking about the distance that the joystick pad is moved from the center then yes. There are 3 expressions; stick force, stick x force and stick y force.

The generic stick force returns 0 to 1 based on the distance from center. The x, y version returns a number between -1 and 1 in the x and y directions.

You can multiple any expression by say 80 to convert the speed from 0 to 80. Instead of 80 you could use 80 * FlatDarkJoystick.StickForce()

If you were applying the forces separately, you could use the similar method, for the x, y multiply the max speed by the respective x and y force expression.

Think of the expression as a percentage from 0 to 1 or 0 to 100%

1 Like

Thanks @Keith_1357 for explain!

1 Like