|Topic was automatically imported from the old Question2Answer platform.
For a mobile platformer project, I’ve been attempting to create a virtual joystick that registers multiple angles or degrees as either left or right movement only. I’ve been trying to use a range of degrees of the virtual joystick that are then sent to a kinematicbody2d, but haven’t had any success so far. To illustrate further, if the joystick circle is comprised of 360 degrees with the right-most side being degree 0, traveling counter-clockwise around the circle, I’d like degrees 135 - 225 to register as LEFT and degrees 315 - 45 to register as RIGHT. I hope this makes sense. If anyone could point me in the right-most direction, it’d be truly valuable to me.