How to implement touching stuff into my 2D game?

In desktop version, my character’s arm is rotates according to the movement of the mouse. I need the same thing in mobile version but this time I need a joystick to rotate his arm. How can I do that?

I am not 100% sure if you want to take this route. A joystick that changes the rotation of your shot, along with actually causing the weapon to fire makes for a pretty clunky end-user experience.

If you do want to go down this route still, then adding a “Button” component to the joystick will cause all clicks to do something after you bind a method to it. Of course you will be able to make only certain clicks count towards firing your weapon.

I will post a (mostly working) example of this if you want. I will intentionally leave some stuff out though so you get to have some of the fun :slight_smile: