B
Buttonsinker
Guest
Hi everybody, I'm having a bit of trouble with the behaviour of my right stick, which aims in my twin-stick shooter. It work great with keyboard & mouse, where the mouse points the direction to shoot. But I've been starting to implement gamepad controls instead and so far everything works except for the right-stick for aiming as replacement to the mouse.
I have two main issues:
1. Once I stop pushing the right-stick on a specific direction, the aim goes back to aiming right. I want it to stay in the direction I last pushed my right-stick to.
2. There is no smooth diagonal movement on the right-stick. It feels like it always snaps to 90, 180, 270 or 360. It can do diagonals but it's clunky .
The first issue is the one that is the most annoying so far. I'm trying to make my weapon aim like in Geometry Wars or Awesomenauts.
Do you have any suggestions on this matter?
So far this is my controls for the right-stick on my gamepad
I have two main issues:
1. Once I stop pushing the right-stick on a specific direction, the aim goes back to aiming right. I want it to stay in the direction I last pushed my right-stick to.
2. There is no smooth diagonal movement on the right-stick. It feels like it always snaps to 90, 180, 270 or 360. It can do diagonals but it's clunky .
The first issue is the one that is the most annoying so far. I'm trying to make my weapon aim like in Geometry Wars or Awesomenauts.
Do you have any suggestions on this matter?
So far this is my controls for the right-stick on my gamepad
Code:
var hraxis = gamepad_axis_value(0, gp_axisrh);
var vraxis = gamepad_axis_value(0, gp_axisrv);
image_angle = point_direction(0, 0, hraxis,vraxis);
Last edited by a moderator: